rsnext/errors/gsp-redirect-during-prerender.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

15 lines
484 B
Text

---
title: Redirect During getStaticProps Prerendering
---
## Why This Error Occurred
The `redirect` value was returned from `getStaticProps` during prerendering which is invalid.
## Possible Ways to Fix It
Remove any paths that result in a redirect from being prerendered in `getStaticPaths` and enable `fallback: true` to handle redirecting for these pages.
## Useful Links
- [Data Fetching Documentation](/docs/pages/building-your-application/data-fetching/get-static-props)