Fix Vercel routing: separate API and static file routes

This commit is contained in:
2025-08-21 13:11:42 +09:00
parent 43d0802442
commit ce29d6bc3b

View File

@@ -8,8 +8,20 @@
],
"routes": [
{
"src": "/(.*)",
"src": "/api/(.*)",
"dest": "/api/simple.js"
},
{
"src": "/health",
"dest": "/api/simple.js"
},
{
"src": "/(.*\\.(html|css|js|json|svg|png|jpg|jpeg|gif|ico|woff|woff2|ttf|eot))",
"dest": "/$1"
},
{
"src": "/(.*)",
"dest": "/index.html"
}
],
"env": {