rsnext/errors/ssg-fallback-true-export.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

16 lines
769 B
Text

---
title: 'SSG `fallback: true` Export Error'
---
## Why This Error Occurred
You attempted to export a page with a `fallback: true` return value from `getStaticPaths` which is invalid. `fallback: true` is meant for building pages on-demand after a build has occurred, exporting disables this functionality
## Possible Ways to Fix It
If you would like the `fallback: true` behavior, you must remove `output: 'export'` and remove `next export` in favor of a different [deployment solution](/docs/pages/building-your-application/deploying).
## Useful Links
- [deployment documentation](/docs/pages/building-your-application/deploying#managed-nextjs-with-vercel)
- [`fallback: true` documentation](/docs/pages/api-reference/functions/get-static-paths#fallback-true)