"no-cache" | revalidate: 0 breaks site in production
As title say, "no-cache" and "revalidate: 0" breaks site in production, on local it works fine. Also, setting it to something like "revalidate: 5" works.
Repo: https://github.com/Apestein/nextflix/blob/bug-branch/src/app/page.tsx
And as you can see the website has 404 error, it gives no error during build time
https://nextflix-8xfr94may-apestein.vercel.app/
This deployment uses revalidate: 5 and as you can see it works: https://nextflix-blush.vercel.app/
0 Replies