Vercel → Railway
mediumRailway removes Vercel's egress fees and function execution limits. Better for server-rendered apps, background workers, and long-running processes.
Estimated: 2-4h · 5 steps
Progress0%
Step 1: Create Railway project
railway login && link to your GitHub repo. Railway auto-detects the build command.
railway login && railway init
Step 2: Configure build
For Next.js: set the start command to `node .next/standalone/server.js`. Set NODE_ENV=production.
railway variables set NODE_ENV=production
Step 3: Add database
Click 'New Service' → PostgreSQL. Railway auto-injects DATABASE_URL.
Step 4: Set environment variables
Copy all Vercel env vars to Railway. Railway: Settings → Variables.
✓ App builds and starts successfully on Railway URL
Step 5: Update DNS
Add custom domain in Railway settings. Update DNS CNAME from Vercel to Railway.