Skip to content

Commit ee3e6ce

Browse files
committed
chore(frontend): add Vercel rewrites and deploy config
1 parent 36f1d6e commit ee3e6ce

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

frontend/.env.production

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# If you prefer absolute calls instead of rewrites, set this
2+
# VITE_API_BASE=https://sportiq-j4hv.onrender.com

frontend/.vercelignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything by default, let Vercel use the build output
2+
# Node modules are not needed at deploy time for static builds
3+
node_modules
4+
*.log
5+
.vscode
6+
.git
7+
.gitignore
8+
.DS_Store

frontend/vercel.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/api/(.*)",
5+
"destination": "https://sportiq-j4hv.onrender.com/api/$1"
6+
},
7+
{
8+
"source": "/health",
9+
"destination": "https://sportiq-j4hv.onrender.com/health"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)