Skip to content

Commit f86544f

Browse files
fix: Downgrade Vite to v5.4.5 and improve Vercel build configuration
- Downgrade vite from 6.3.5 to 5.4.5 for better stability - Update rollup resolution to 4.20.0 for compatibility - Improve vercel.json with fallback build strategy - Add clean install command to avoid npm cache issues
1 parent 0a3e87d commit f86544f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

client/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@
8989
"tw-animate-css": "^1.3.7",
9090
"typescript": "~5.8.3",
9191
"typescript-eslint": "^8.30.1",
92-
"vite": "^6.3.5"
92+
"vite": "^5.4.5"
93+
},
94+
"resolutions": {
95+
"rollup": "^4.20.0",
96+
"@rollup/rollup-linux-x64-gnu": "^4.20.0",
97+
"vite": "^5.4.5"
98+
},
99+
"overrides": {
100+
"rollup": "^4.20.0",
101+
"vite": "^5.4.5"
93102
}
94103
}

client/vercel.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"version": 2,
3+
"installCommand": "rm -rf node_modules package-lock.json && npm install --no-optional",
4+
"buildCommand": "npm run build || (npm install --include=optional && npm run build)",
5+
"outputDirectory": "dist",
26
"rewrites": [
37
{
48
"source": "/(.*)",

0 commit comments

Comments
 (0)