Vercel → Railway
mediumRailway removes Vercel's egress fees and function execution limits. Better for server-rendered apps, background workers, and long-running processes.
railway login && link to your GitHub repo. Railway auto-detects the build command.
railway login && railway init
For Next.js: set the start command to `node .next/standalone/server.js`. Set NODE_ENV=production.
railway variables set NODE_ENV=production
Click 'New Service' → PostgreSQL. Railway auto-injects DATABASE_URL.
Copy all Vercel env vars to Railway. Railway: Settings → Variables.
Add custom domain in Railway settings. Update DNS CNAME from Vercel to Railway.
What this migration involves
Moving from Vercel to Railway is rated medium and takes about 2-4h on a typical project. The guide breaks it into 5 steps, 2 of which ship with runnable commands and 1 with a verification check. On pricing, Vercel is freemium and Railway is freemium with a free plan to test the move.
Related migrations
FAQ
How long does migrating from Vercel to Railway take?
Around 2-4h for a typical project — 5 steps, difficulty rated medium, 2 of them with copy-paste commands.
Is moving from Vercel to Railway reversible?
No reverse guide is tracked yet, so treat this as a one-way move and keep a full export of your Vercel data before you start.
What does Railway cost compared to Vercel?
Vercel: freemium from $20/mo, free plan available. Railway: freemium from $5/mo, free plan available.