silverwolf-x/project / errors /gsp-redirect-during-prerender.mdx
silverwolf-x's picture
download
raw
484 Bytes
---
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)

Xet Storage Details

Size:
484 Bytes
·
Xet hash:
522dfdceec224085b4140accd32240c0f988ecd1400c76d78fa716681ff2bb5c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.