/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
errors/get-initial-props-export.mdx
17 строк
506 B
Jam Balaya
docs: unify the header deps by removing # (#72391)
07 ноя 2024, 11:58
Не верифицирован
07 ноя 2024, 11:58
74a19b7
Код
Авторство
О чём код?
--- title: '`getInitialProps` Export Warning' --- ## Why This Warning Occurred You attempted to statically export your application via `output: 'export'` or `next export`, however, one or more of your pages uses `getInitialProps`. Next.js discourages you to use `getInitialProps` in this scenario. ## Possible Ways to Fix It Use `getStaticProps` instead for proper SSG support. ## Useful Links - [`getStaticProps` Documentation](/docs/pages/building-your-application/data-fetching/get-static-props)