Perps-Terminal / vercel.json
Naufal Arhab
fix(vercel): move functions under backend service definition
70459a5
Raw History Blame Contribute Delete
698 Bytes
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"regions": ["sin1"],
"services": {
"backend": {
"root": "backend",
"framework": "fastapi",
"entrypoint": "main:app",
"functions": {
"main.py": {
"maxDuration": 300
}
}
},
"frontend": {
"root": "frontend",
"framework": "vite"
}
},
"rewrites": [
{
"source": "/api/(.*)",
"destination": {
"service": "backend"
}
},
{
"source": "/health",
"destination": {
"service": "backend"
}
},
{
"source": "/(.*)",
"destination": {
"service": "frontend"
}
}
]
}