/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/non-dynamic-getstaticpaths-usage.mdx
16 строк
571 B
Delba de Oliveira
docs: Migrate error messages to MDX and App Router. (#52038)
05 июл 2023, 16:11
Не верифицирован
05 июл 2023, 16:11
44d1a1c
Код
Авторство
О чём код?
--- title: '`getStaticPaths` Used on Non-Dynamic Page' --- ## Why This Error Occurred On a non-dynamic SSG page `getStaticPaths` was incorrectly exported as this can only be used on dynamic pages to return the paths to prerender. ## Possible Ways to Fix It Remove the `getStaticPaths` export on the non-dynamic page or rename the page to be a dynamic page. ## Useful Links - [Dynamic Routes Documentation](/docs/pages/building-your-application/routing/dynamic-routes) - [`getStaticPaths` Documentation](/docs/pages/building-your-application/routing/dynamic-routes)