After upgrading an application to nextjs15, it returns empty HTML 0kb
Unanswered
Sloth bear posted this in #help-forum
Sloth bearOP
Hey everyone 👋,
We're encountering a strange issue since migrating from Next.js 13 to Next.js 15 (using the pages directory with SSR):
After deploying to staging, our homepage (/) initially loads perfectly, but after some time (usually after cache expiration), it suddenly returns completely empty HTML: <html><head></head><body></body></html>.
This affects only the homepage. All other pages continue to render fine.
We tried wrapping our SSR (getStaticProps) logic with a try/catch block but didn't catch any errors.
We previously had custom cache-control headers set, but even after removing them, the problem persists.
Has anyone encountered something similar or have any pointers on what might cause this behavior in Next.js 15 or Vercel's CDN caching?
Thanks in advance! 🙏
We're encountering a strange issue since migrating from Next.js 13 to Next.js 15 (using the pages directory with SSR):
After deploying to staging, our homepage (/) initially loads perfectly, but after some time (usually after cache expiration), it suddenly returns completely empty HTML: <html><head></head><body></body></html>.
This affects only the homepage. All other pages continue to render fine.
We tried wrapping our SSR (getStaticProps) logic with a try/catch block but didn't catch any errors.
We previously had custom cache-control headers set, but even after removing them, the problem persists.
Has anyone encountered something similar or have any pointers on what might cause this behavior in Next.js 15 or Vercel's CDN caching?
Thanks in advance! 🙏