Next.js Discord

Discord Forum

Static page generation timed out

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Disclaimer: this may be a Vercel specific issue.

When deploying to Vercel im getting sporadic errors saying Static page generation timed out. It seems to only happen for sitemap, which is dynamic, fetched through Sanity and revalidated every 180 seconds.
I am on the latest stable version of Next.js, using the app router. I have tried canary versions and also tried increasing staticPageGenerationTimeout as mentioned in the Next.js docs. This was not an issue until i started using ISR on the sitemap.
Also, I have not been able to reproduce this issue by running a build locally, using production data, which is what makes me think it might be related to Vercel.

Anyone who has run into this issue, or has any ideas of what to attempt to solve it?

0 Replies