silverwolf-x/project / errors /gssp-mixed-not-found-redirect.mdx
silverwolf-x's picture
download
raw
687 Bytes
---
title: 'Mixed `notFound` and `redirect`'
---
## Why This Error Occurred
In one of your page's `getStaticProps` or `getServerSideProps` `notFound` and `redirect` values were both returned.
These values can not both be returned at the same time and one or the other needs to be returned at a time.
## Possible Ways to Fix It
Make sure only `notFound` **or** `redirect` is being returned on your page's `getStaticProps` or `getServerSideProps`
## Useful Links
- [`getStaticProps` Documentation](/docs/pages/building-your-application/data-fetching/get-static-props)
- [`getServerSideProps` Documentation](/docs/pages/building-your-application/data-fetching/get-server-side-props)

Xet Storage Details

Size:
687 Bytes
·
Xet hash:
2268a3612adfc379db4367501a479faf91952a2f69b21cb8dc657181ee654b32

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