-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel.json
More file actions
19 lines (19 loc) · 720 Bytes
/
Copy pathvercel.json
File metadata and controls
19 lines (19 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"services": {
"web": {
"root": "web/",
"framework": "nextjs"
},
"api": {
"//": "Root is the repo, not api/, because the Python package uses absolute imports (from api.config import ...). Rooting at api/ would make main.py a top-level module and break them. excludeFiles keeps the bundle small.",
"root": ".",
"entrypoint": "api.main:app",
"excludeFiles": "{web/**,evals/**,fixtures/**,tests/**,scripts/**,docs/**,.venv/**,**/__pycache__/**,**/*.md}"
}
},
"rewrites": [
{ "source": "/api/(.*)", "destination": { "service": "api" } },
{ "source": "/(.*)", "destination": { "service": "web" } }
]
}