rewrite-auto-export-fallback.mdx
title: Rewriting to Auto Export or Fallback Dynamic Route
Why This Error Occurred
One of your rewrites in your next.config.js point to a dynamic route that is automatically statically optimized or is a fallback SSG page.
Rewriting to these pages are not yet supported since rewrites are not available client-side and the dynamic route params are unable to be parsed. Support for this may be added in a future release.
Possible Ways to Fix It
For fallback SSG pages you can add the page to the list of prerendered paths.
For static dynamic routes, you will currently need to either rewrite to non-dynamic route or opt the page out of the static optimization with getServerSideProps
Useful Links
Rendered from the public repository vercel/next.js on GitHub; content belongs to its authors. Cached for up to an hour.