I am using NextJS 14 (https://my-weight-jr.netlify.app/) and, after deploying to Netlify, I’m getting this 500 error “Failed to load resource: the server responded with a status of 500 ()” when the app tries to fetch data from /api/weight…
Thanks in advance for your help and, most importantly, your time!
I have just created a new project using NextJS 13, made a new deploy on Netlify and I am still getting the same 500 error when calling the api routes… Everything works locally.
It’s very strange because the code appears to be correct. I found some similar erros on web but none of them apply to my project. Every solution proposed to these cases is already implemented here…
Could you give us an idea of when you plan to support Next 14?
Also, I haven’t been able to find this in your docs; is there somewhere we can see the version support for Next (and other frameworks) at any given time? Currently this looks like a blocker to upgrading one of our apps, it would have been useful for us to know about this ahead of time.
The latest versions of all frameworks more or less work on Netlify. Any version actively maintained by the framework itself should also work. Older versions might work, but if a framework itself has dropped support for it, we don’t provide much troubleshooting with it either.
As for Next.js, things are different, since it’s owned and maintained by our direct competitor. Most other frameworks maintain their own integrations with Netlify, but for Next.js, we have to read the code, sometimes reverse engineer and create our own integration to make it work. This takes time and creates more issues with every new version’s breaking changes.
For Next.js 14, we aim to release a beta stability in the upcoming weeks.