/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/rewrite-auto-export-fallback.mdx
20 строк
1 KB
Delba de Oliveira
docs: Migrate error messages to MDX and App Router. (#52038)
05 июл 2023, 16:11
Не верифицирован
05 июл 2023, 16:11
44d1a1c
Код
Авторство
О чём код?
--- 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](/docs/pages/building-your-application/routing/dynamic-routes) that is automatically statically optimized or is a [fallback SSG page](/docs/pages/api-reference/functions/get-static-paths#getstaticpaths-return-values). 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](/docs/pages/api-reference/functions/get-static-paths#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`](/docs/pages/building-your-application/data-fetching/get-server-side-props) ## Useful Links - [Dynamic Routes Documentation](/docs/pages/building-your-application/routing/dynamic-routes) - [Fallback Documentation](/docs/pages/api-reference/functions/get-static-paths#getstaticpaths-return-values)