Skip to content

Commit 10a97d5

Browse files
committed
fix: use build.env in vercel.json for proper Vite build-time var injection
1 parent cf29d44 commit 10a97d5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/vercel.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"buildCommand": "npm run build",
33
"outputDirectory": "dist",
44
"framework": "vite",
5-
"env": {
6-
"VITE_API_BASE_URL": "https://advtaskmanager.onrender.com/api"
5+
"build": {
6+
"env": {
7+
"VITE_API_BASE_URL": "https://advtaskmanager.onrender.com/api"
8+
}
79
},
810
"rewrites": [
911
{ "source": "/(.*)", "destination": "/index.html" }
1012
]
1113
}
12-

0 commit comments

Comments
 (0)