apps/server app deploys to Railway.
How Railway builds
Railway runsnpm ci using the server’s own package-lock.json, then runs
prisma migrate deploy on startup.
Migrations in production
Production applies schema changes only throughprisma migrate deploy. Every
change to schema.prisma must ship with a migration file — a missing migration
causes runtime errors. Never run prisma db push against the production
database; use pnpm db:push locally, which blocks pushes to the Railway DB.
Pre-deploy checks
Run the server typecheck before pushing, since Railway runsnpx tsc during
deploy: