u/orcashelo

Next.js app deploys successfully on Vercel, but I'm getting a server error with Railway MySQL
▲ 1 r/vercel+1 crossposts

Next.js app deploys successfully on Vercel, but I'm getting a server error with Railway MySQL

Hi everyone, I need help with my web application deployment.

I deployed my Next.js web app on Vercel. The deployment is successful, but when I open the live website, I get a server error.

My database is MySQL and it is hosted on Railway. I already added the database connection URL/environment variables in Vercel, but the app still shows a server error.

Can anyone guide me on how to debug this properly?

Details:

* Frontend/Backend: Next.js on Vercel

* Database: MySQL on Railway

* Problem: Server error after deployment

* Local project works, but deployed version has an issue

What should I check first: Vercel environment variables, Railway database connection, build logs, or API routes?

u/orcashelo — 7 days ago