Next.js Discord

Discord Forum

v13.5.0+ tries to build an all SSR site statically and fails

Unanswered
Pacific cod posted this in #help-forum
Open in Discord
Pacific codOP
Since v13.5.0, next build incorrectly tries to build some pages as static pages. This happens in spite of me marking all pages in the app-folder as "force-dynamic".

I cannot have any static pages as I need to check cookies on every page, and the build succeeds locally (but I can see it generating cookie request error logs), but ends with an error on Google cloud run where I host the site.

Static worker unexpectedly exited with code: null and signal: SIGTERM
Build error occurred
Error: Static page generation for /_not-found is still timing out after 3 attempts. See more info here https://nextjs.org/docs/messages/static-page-generation-timeout



Have there been any changes done to how the build script handles static pages in 13.5.0?

0 Replies