Browse Source

Use Node 20 with engine override for Railway compatibility

Made-with: Cursor
pull/6453/head
Priyanka Punukollu 1 month ago
parent
commit
5a5416bf2b
  1. 2
      .node-version
  2. 2
      .npmrc
  3. 15
      nixpacks.toml
  4. 2
      railway.toml

2
.node-version

@ -1 +1 @@
22
20

2
.npmrc

@ -0,0 +1,2 @@
engine-strict=false
legacy-peer-deps=true

15
nixpacks.toml

@ -1,17 +1,4 @@
providers = ["node"]
[variables]
NODE_VERSION = "22"
NPM_CONFIG_PRODUCTION = "false"
[phases.setup]
nixPkgs = ["openssl"]
[phases.install]
cmds = ["npm ci --legacy-peer-deps"]
[phases.build]
cmds = ["npx prisma generate", "npm run build:production"]
[start]
cmd = "npx prisma migrate deploy && npm run start"
NIXPACKS_NODE_VERSION = "20"

2
railway.toml

@ -1,6 +1,6 @@
[build]
builder = "nixpacks"
buildCommand = "npm ci && npx prisma generate && npm run build:production"
buildCommand = "npm ci --legacy-peer-deps && npx prisma generate && npm run build:production"
[deploy]
startCommand = "npx prisma migrate deploy && npm run start"

Loading…
Cancel
Save