mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
d5359765dd
Closes: - https://linear.app/vercel/issue/DOC-4550/static-exports - https://linear.app/vercel/issue/DOC-4551/self-hosting Redirects: https://github.com/vercel/front/pull/44237 --------- Co-authored-by: Lee Robinson <lee@leerob.com>
17 lines
722 B
Plaintext
17 lines
722 B
Plaintext
---
|
|
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/getting-started/deploying).
|
|
|
|
## Useful Links
|
|
|
|
- [Deployment documentation](/docs/pages/getting-started/deploying)
|
|
- [`fallback: true` documentation](/docs/pages/api-reference/functions/get-static-paths#fallback-true)
|