Skip to content

Commit aa7d98d

Browse files
committed
fix: add root vercel.json for Next.js + Python dual deployment
1 parent 4f05772 commit aa7d98d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

‎vercel.json‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"framework": "nextjs",
3+
"buildCommand": "cd web && npm install && npm run build",
4+
"outputDirectory": "web/.next",
5+
"installCommand": "cd web && npm install",
6+
"functions": {
7+
"web/api/roast.py": {
8+
"maxDuration": 60,
9+
"runtime": "python3.12"
10+
}
11+
},
12+
"rewrites": [
13+
{
14+
"source": "/api/roast",
15+
"destination": "/web/api/roast.py"
16+
},
17+
{
18+
"source": "/api/roast/:path*",
19+
"destination": "/web/api/roast.py"
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)