rsnext/errors/gsp-redirect-during-prerender.mdx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
484 B
Text
Raw Normal View History

---
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)