ALAMDIENG commited on
Commit
054ece0
·
1 Parent(s): 2c1dc99

fix: configure vercel.json builds to only package frontend static assets

Browse files
Files changed (1) hide show
  1. vercel.json +7 -4
vercel.json CHANGED
@@ -1,9 +1,12 @@
1
  {
2
  "version": 2,
3
  "cleanUrls": true,
4
- "rewrites": [
5
- { "source": "/static/(.*)", "destination": "/frontend/$1" },
6
- { "source": "/api/(.*)", "destination": "https://alamdieng-waste-prediction-api.hf.space/api/$1" },
7
- { "source": "/(.*)", "destination": "/frontend/$1" }
 
 
 
8
  ]
9
  }
 
1
  {
2
  "version": 2,
3
  "cleanUrls": true,
4
+ "builds": [
5
+ { "src": "frontend/**", "use": "@vercel/static" }
6
+ ],
7
+ "routes": [
8
+ { "src": "/static/(.*)", "dest": "/frontend/$1" },
9
+ { "src": "/api/(.*)", "dest": "https://alamdieng-waste-prediction-api.hf.space/api/$1" },
10
+ { "src": "/(.*)", "dest": "/frontend/$1" }
11
  ]
12
  }