fix: update build and start commands in package.json and add railway.toml for deployment configuration

This commit is contained in:
Junaid
2025-12-25 00:36:20 -06:00
parent 2f190279f0
commit 447d700f54
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
"private": true,
"scripts": {
"dev": "keystone build --no-ui && npm run migrate && next dev",
"build": "keystone build --no-ui && next build",
"start": "npm run migrate && next start",
"build": "keystone build --no-ui && npm run migrate && next build",
"start": "next start",
"lint": "next lint",
"migrate:gen": "keystone build --no-ui && tsx features/keystone/view-order/generate-view-order.ts && keystone prisma migrate dev",
"migrate": "prisma migrate deploy"
+7
View File
@@ -0,0 +1,7 @@
# Railway can't access internal databases during build, so we move
# npm run migrate from build to start command
[build]
buildCommand = "keystone build --no-ui && next build"
[deploy]
startCommand = "npm run migrate && next start"