Railway
Deploy Next.js services, attach Postgres, and run migrations on Railway.
Service
Create a web service from your Git repo, set the start command to npm run start, and configure the Node version to match local development.
Database
Add a Railway Postgres plugin, copy DATABASE_URL into the web service, and run migrations from CI or a one-off shell.
Domains
Attach custom domains and enable HTTPS in the Railway dashboard.
Use separate projects for production and staging to isolate credentials.