Skip to content

Commit 8058317

Browse files
committed
fix: require Node 22 for Railway build
- Added nixpacksPlan with nodejs_22 to railway.json - Added .node-version file - Added engines.node >= 22 to package.json
1 parent 9adbfe3 commit 8058317

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@
4848
"tailwindcss": "^4.2.2",
4949
"typescript": "^5.9.3",
5050
"vitest": "^4.1.0"
51+
},
52+
"engines": {
53+
"node": ">=22"
5154
}
52-
}
55+
}

railway.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
"$schema": "https://railway.app/railway.schema.json",
33
"build": {
44
"builder": "NIXPACKS",
5-
"buildCommand": "pnpm install --frozen-lockfile && pnpm build"
5+
"buildCommand": "pnpm install --frozen-lockfile && pnpm build",
6+
"nixpacksPlan": {
7+
"providers": ["node"],
8+
"phases": {
9+
"setup": {
10+
"nixPkgs": ["nodejs_22"]
11+
}
12+
}
13+
}
614
},
715
"deploy": {
816
"startCommand": "pnpm start",

0 commit comments

Comments
 (0)