We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06b5ad commit db59988Copy full SHA for db59988
nixpacks.toml
@@ -1,17 +1,11 @@
1
[phases.setup]
2
-nixPkgs = ["nodejs_20", "npm-9_x"]
+nixPkgs = ["nodejs_20"]
3
4
[phases.install]
5
-cmds = [
6
- "cd website",
7
- "npm ci --legacy-peer-deps"
8
-]
+cmds = ["cd website && npm ci"]
9
10
[phases.build]
11
12
13
- "npm run build"
14
+cmds = ["cd website && npm run build:railway && cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public"]
15
16
[start]
17
-cmd = "cd website && npm run start"
+cmd = "cd website/.next/standalone && node server.js"
railway.toml
@@ -1,6 +1,5 @@
[build]
-builder = "dockerfile"
-dockerfilePath = "Dockerfile"
+builder = "nixpacks"
[deploy]
restartPolicyType = "ON_FAILURE"
0 commit comments