rsnext/errors/gssp-mixed-not-found-redirect.md
JJ Kasper 9f6d5b14df
Add test and errsh for mixed notFound/redirect error (#19076)
This ensures the mixed `notFound`/`redirect` error is shown correctly and adds an err.sh for the error. 

Closes: https://github.com/vercel/next.js/issues/18727
2020-11-11 22:02:11 +00:00

714 B

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