Skip to content

Commit a5da037

Browse files
committed
Fix Vercel deployment issues and add configuration files
- Update .vercelignore to include electron-api.d.ts for build - Add vercel.json with proper React SPA configuration - Add .nvmrc for Node.js version specification
1 parent 8632178 commit a5da037

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

frontend/.nvmrc

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

frontend/.vercelignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# Electron files
1414
main.js
1515
preload.js
16-
electron-api.d.ts
1716

1817
# Build cache
1918
.cache

frontend/vercel.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
{
2-
"framework": "create-react-app",
3-
"buildCommand": "npm run build",
2+
"version": 2,
3+
"buildCommand": "CI=false npm run build",
44
"outputDirectory": "build",
5-
"installCommand": "npm install",
6-
"devCommand": "npm start",
7-
"env": {
8-
"CI": "false"
9-
},
10-
"build": {
11-
"env": {
12-
"CI": "false"
13-
}
14-
},
5+
"framework": "create-react-app",
156
"rewrites": [
167
{
178
"source": "/(.*)",
189
"destination": "/index.html"
1910
}
11+
],
12+
"headers": [
13+
{
14+
"source": "/static/(.*)",
15+
"headers": [
16+
{
17+
"key": "Cache-Control",
18+
"value": "public, max-age=31536000, immutable"
19+
}
20+
]
21+
}
2022
]
2123
}

0 commit comments

Comments
 (0)