title: Static pagination in NextJS
body: <p>I'm trying to set up pagination in Next JS, but I'm not able to figure out how to achieve this through getStaticProps. I am able to do this through getServerSideProps with the query parameter, but this is not accessible through getStaticProps. The data is coming from local Strapi backend.</p>
  <p>Here is the example of getServerSideProps (which works):</p>
  <pre><code>export async function getServerSideProps({ query: { page = 1 } }) {
  const { API_URL } = process.env;
  
  const start = +page === 1 ? 0 : (+page - 1) * 3;
  const numberOfCakesRes = await fetch(`${API_URL}/cakes/count`);
  const numberofCakes = await numberOfCakesRes.json();
  
  const res = await fetch(`${API_URL}/cakes?_limit=3&amp;_start=${start}`);
  const data = await res.json();
  
  return {
      props: {
          cakes: data,
          page: +page,
          numberofCakes,
      },
  };
  </code></pre>
  <p>}</p>
  <p>Then I just hook up the buttons to the router to go back and forth.</p>
  <pre><code>onClick={() =&gt; router.push(`/?page=${page - 1}`)}
  </code></pre>
  <p>I need access to something similar to the query parameter in getServerSideProps.
  Is what I'm asking for achievable statically?</p>