Skip to content

Commit 0a3e87d

Browse files
fix: Resolve Vercel build issues with Node.js v22 compatibility
- Added .nvmrc to force Node.js 18 for Vercel deployment - Simplified vercel.json to minimal configuration - Updated build scripts to avoid TypeScript compilation issues - Fixed Rollup native module compatibility error - Removed conflicting vercel.json files - Enhanced environment variable documentation - Updated repository remote to main RabbitDaCoder/ExpressLogistics
1 parent f3efb42 commit 0a3e87d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

client/.nvmrc

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

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "vite",
88
"build": "vite build",
99
"build:tsc": "tsc -b && vite build",
10+
"build:vercel": "vite build --mode production",
1011
"lint": "eslint .",
1112
"preview": "vite preview"
1213
},

client/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/(.*)",
5+
"destination": "/index.html"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)