2025-08-21 11:26:03 +09:00
|
|
|
{
|
|
|
|
"version": 2,
|
|
|
|
"builds": [
|
|
|
|
{
|
2025-08-21 13:06:35 +09:00
|
|
|
"src": "api/simple.js",
|
2025-08-21 11:26:03 +09:00
|
|
|
"use": "@vercel/node"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"routes": [
|
|
|
|
{
|
2025-08-21 13:11:42 +09:00
|
|
|
"src": "/api/(.*)",
|
|
|
|
"dest": "/api/simple.js"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"src": "/health",
|
2025-08-21 13:06:35 +09:00
|
|
|
"dest": "/api/simple.js"
|
2025-08-21 13:11:42 +09:00
|
|
|
},
|
|
|
|
{
|
2025-08-21 13:25:57 +09:00
|
|
|
"src": "/(.*\\.(css|js|json|svg|png|jpg|jpeg|gif|ico|woff|woff2|ttf|eot|html))",
|
|
|
|
"headers": {
|
|
|
|
"Cache-Control": "public, max-age=31536000, immutable"
|
|
|
|
},
|
2025-08-21 13:11:42 +09:00
|
|
|
"dest": "/$1"
|
|
|
|
},
|
2025-08-21 13:25:57 +09:00
|
|
|
{
|
|
|
|
"src": "/index\\.html",
|
|
|
|
"headers": {
|
|
|
|
"Cache-Control": "public, max-age=0, must-revalidate"
|
|
|
|
},
|
|
|
|
"dest": "/index.html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"src": "/admin/(.*)",
|
|
|
|
"dest": "/admin/$1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"src": "^/$",
|
|
|
|
"dest": "/api/simple.js"
|
|
|
|
},
|
2025-08-21 13:11:42 +09:00
|
|
|
{
|
|
|
|
"src": "/(.*)",
|
|
|
|
"dest": "/index.html"
|
2025-08-21 11:26:03 +09:00
|
|
|
}
|
|
|
|
],
|
2025-08-21 13:25:57 +09:00
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"source": "/api/(.*)",
|
|
|
|
"headers": [
|
|
|
|
{
|
|
|
|
"key": "Cache-Control",
|
|
|
|
"value": "public, max-age=0, s-maxage=86400"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2025-08-21 11:26:03 +09:00
|
|
|
"env": {
|
|
|
|
"NODE_ENV": "production"
|
|
|
|
}
|
|
|
|
}
|