title: How to get URL query string on Next.js static site generation?
body: <p>I want to get query string from URL on Next.js static site generation.</p>
  <p>I found a solution on SSR but I need one for SSG.</p>
  <p>Thanks</p>
  <p><a href="https://i.stack.imgur.com/CQfDf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CQfDf.png" alt="enter image description here" /></a></p>