Skip to content

Commit 828f7cb

Browse files
committed
fix: explicit railway build script
1 parent cbbd095 commit 828f7cb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build:web": "npm run build -w web",
1212
"build:api": "npm run build -w api",
1313
"build": "npm run build:web && npm run build:api",
14+
"railway:build": "rm -rf node_modules package-lock.json && npm install && npm run build",
1415
"start": "npm start -w api"
1516
},
1617
"engines": {

railway.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
22
builder = "NIXPACKS"
3-
buildCommand = "rm -rf node_modules package-lock.json && npm install && npm run build"
3+
buildCommand = "npm run railway:build"
44

55
[deploy]
66
startCommand = "npm start -w api"

0 commit comments

Comments
 (0)