From 11912d4c9c875bcb75b2bb2760ff2545b16c37a0 Mon Sep 17 00:00:00 2001 From: "railway-app[bot]" <68434857+railway-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 17:27:57 +0000 Subject: [PATCH] fix: use RAILPACK builder and move prisma migrate to preDeployCommand --- railway.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/railway.json b/railway.json index 143c123..606abee 100644 --- a/railway.json +++ b/railway.json @@ -1,10 +1,11 @@ { - "$schema": "https://railway.app/railway.schema.json", + "$schema": "https://railway.com/railway.schema.json", "build": { - "builder": "NIXPACKS", - "buildCommand": "pnpm install && cd backend && npx prisma generate && npx prisma migrate deploy && pnpm run build" + "builder": "RAILPACK", + "buildCommand": "cd backend && npx prisma generate && pnpm run build" }, "deploy": { + "preDeployCommand": "cd backend && npx prisma migrate deploy", "startCommand": "cd backend && node dist/main.js", "healthcheckPath": "/api/v1/health", "healthcheckTimeout": 120,