Skip to content

Commit 6cfebb5

Browse files
fix: Update Node.js version to 18.20.8 and improve build command in netlify.toml
1 parent 3e715f7 commit 6cfebb5

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

client/netlify.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
# Directory that contains the deploy-ready HTML files and assets
66
publish = "dist/"
77

8+
# Build command with proper dependency installation
9+
command = "npm install --include=optional && npm run build"
10+
11+
[build.environment]
12+
# Node.js version
13+
NODE_VERSION = "18.20.8"
14+
# Force npm to install optional dependencies (native binaries)
15+
NPM_CONFIG_INCLUDE = "optional"
16+
17+
# Redirect rules for SPA routing
18+
[[redirects]]
19+
from = "/*"
20+
to = "/index.html"
21+
status = 200ory to change to before starting a build
22+
base = "client/"
23+
24+
# Directory that contains the deploy-ready HTML files and assets
25+
publish = "dist/"
26+
827
# Default build command
928
command = "npm run build"
1029

client/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@
9494
"resolutions": {
9595
"rollup": "^4.20.0",
9696
"@rollup/rollup-linux-x64-gnu": "^4.20.0",
97-
"vite": "^5.4.5"
97+
"vite": "^5.4.5",
98+
"lightningcss": "^1.25.1"
9899
},
99100
"overrides": {
100101
"rollup": "^4.20.0",
101-
"vite": "^5.4.5"
102+
"vite": "^5.4.5",
103+
"lightningcss": "^1.25.1"
102104
}
103105
}

0 commit comments

Comments
 (0)