{ "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "//": "Just build. Nixpacks already ran `npm ci` in its install phase, and re-running it here fails with EBUSY: npm clears node_modules before installing, but the builder has a cache mounted at node_modules/.cache that cannot be removed. Every build dependency lives in `dependencies`, so nothing is missing.", "buildCommand": "npm run build" }, "deploy": { "startCommand": "npx prisma migrate deploy && npx next start -p ${PORT:-3000}", "healthcheckPath": "/login", "healthcheckTimeout": 120, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 5 } }