Buckets:
| 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) | |
Xet Storage Details
- Size:
- 506 Bytes
- Xet hash:
- f758c340ce11610a9d16439a47a061b72939e31c28978d44165b2eec805b2784
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.