From 6d5eb857bd539e1420628639f63025e07290d98f Mon Sep 17 00:00:00 2001 From: Priyanka Punukollu Date: Sun, 1 Mar 2026 00:11:56 -0600 Subject: [PATCH] Fix Node.js version for Railway Nixpacks Made-with: Cursor --- .node-version | 1 + nixpacks.toml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 000000000..2bd5a0a98 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22 diff --git a/nixpacks.toml b/nixpacks.toml index 0f8725fe8..6a6eb2057 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,10 +1,14 @@ providers = ["node"] +[variables] +NODE_VERSION = "22" +NPM_CONFIG_PRODUCTION = "false" + [phases.setup] -nixPkgs = ["nodejs-22_x", "openssl"] +nixPkgs = ["openssl"] [phases.install] -cmds = ["npm ci"] +cmds = ["npm ci --legacy-peer-deps"] [phases.build] cmds = ["npx prisma generate", "npm run build:production"]