title: getStaticProps in dynamic routes in Next.js
body: <p>I use <code>getStaticProps</code> in a Next.js page.</p>
  <pre class="lang-js prettyprint-override"><code>export const getStaticProps = wrapper.getStaticProps(async ({ store }) =&gt; {
    store.dispatch(getInfoRequest());
    store.dispatch(END);
    await store.sagaTask.toPromise()
  });
  </code></pre>
  <p>This is a dynamic route.
  An when I refresh the page I get:</p>
  <blockquote>
  <p>Error: getStaticPaths is required for dynamic SSG pages and is missing for '/dates/[[...info]]'.
  Read more: <a href="https://err.sh/next.js/invalid-getstaticpaths-value" rel="nofollow noreferrer">https://err.sh/next.js/invalid-getstaticpaths-value</a></p>
  </blockquote>
  <p>Why does this error happen?</p>