Skip to content

Commit 913c6b3

Browse files
author
Developer
committed
Setup Vercel configuration for deployment
1 parent 77d4715 commit 913c6b3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

vercel.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"buildCommand": "npm run build",
3+
"outputDirectory": ".next",
4+
"devCommand": "npm run dev",
5+
"installCommand": "npm install",
6+
"framework": "nextjs",
7+
"functions": {
8+
"app/api/gemini-vision/route.ts": {
9+
"maxDuration": 300
10+
},
11+
"app/api/generate/route.ts": {
12+
"maxDuration": 300
13+
},
14+
"app/api/generate-pptx-slides/route.ts": {
15+
"maxDuration": 300
16+
}
17+
},
18+
"headers": [
19+
{
20+
"source": "/api/(.*)",
21+
"headers": [
22+
{
23+
"key": "Access-Control-Allow-Origin",
24+
"value": "*"
25+
},
26+
{
27+
"key": "Access-Control-Allow-Methods",
28+
"value": "GET, POST, PUT, DELETE, OPTIONS"
29+
},
30+
{
31+
"key": "Access-Control-Allow-Headers",
32+
"value": "Content-Type, Authorization"
33+
}
34+
]
35+
}
36+
],
37+
"rewrites": [
38+
{
39+
"source": "/health",
40+
"destination": "/api/health"
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)