Hello Netlify Community,
I am encountering a recurring issue with my Next.js site deployed on Netlify. My project is set up with Static Site Generation (SSG), and I’m running Next.js 14.1.4. After each deployment, certain pages randomly throw 500 errors. These errors change unpredictably with every new deployment—pages that previously worked may start showing 500 errors, and the errors do not seem to follow any identifiable pattern.
Site Details
- Netlify Site Name: zaunergroup-dev.netlify.app
- Primary Domain: https://dev-zaunergroup.cs-dev.tech/en
- Example 500 Error Page: https://dev-zaunergroup.cs-dev.tech/en/about-us
Troubleshooting Attempts
- I have checked for environment variable issues, configuration inconsistencies, and attempted multiple re-deployments, but the issue persists.
- No logs are generated for these 500 errors, which is making it difficult to diagnose the cause.
Questions
- Is there a way to enable detailed error logging for Next.js builds on Netlify to help identify the root cause of these random 500 errors?
- Are there any specific Next.js settings or configurations that could help resolve this issue?
- Has there been any known compatibility issue between Next.js 14.1.4 and Netlify that might lead to random 500 errors with SSG?
I would greatly appreciate any guidance or suggestions on resolving this issue.
Best regards,
Andreas