Why does my Next.js page work locally but throw a 500 error on Vercel?
This is almost always caused by missing production environment variables, attempting to access window/localStorage on the server, or unhandled promise rejections in server components.