Skip to content

Commit 1113ee3

Browse files
MaxGhenisclaude
andcommitted
fix: add root vercel.json to enable API functions
The Vite framework preset doesn't automatically include API routes. Adding vercel.json at repo root with explicit functions config. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cdf7778 commit 1113ee3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vercel.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": 2,
3+
"buildCommand": "cd app && npm run build",
4+
"outputDirectory": "app/dist",
5+
"framework": null,
6+
"functions": {
7+
"app/api/*.ts": {
8+
"runtime": "@vercel/node@3"
9+
}
10+
},
11+
"rewrites": [
12+
{ "source": "/api/(.*)", "destination": "/app/api/$1" },
13+
{ "source": "/(.*)", "destination": "/app/dist/$1" }
14+
]
15+
}

0 commit comments

Comments
 (0)