mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 18:25:11 +00:00
61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
{
|
|
"version": 2,
|
|
"builds": [
|
|
{
|
|
"src": "api/index.js",
|
|
"use": "@vercel/node"
|
|
},
|
|
{
|
|
"src": "api/proxy.js",
|
|
"use": "@vercel/node"
|
|
},
|
|
{
|
|
"src": "public/**",
|
|
"use": "@vercel/static"
|
|
}
|
|
],
|
|
"routes": [
|
|
{
|
|
"src": "/api/proxy",
|
|
"dest": "/api/proxy.js"
|
|
},
|
|
{
|
|
"src": "/api/(.*)",
|
|
"dest": "/api/index.js"
|
|
},
|
|
{
|
|
"src": "/docs",
|
|
"dest": "/public/docs.html"
|
|
},
|
|
{
|
|
"src": "/tos",
|
|
"dest": "/public/tos.html"
|
|
},
|
|
{
|
|
"src": "/privacy",
|
|
"dest": "/public/privacy.html"
|
|
},
|
|
{
|
|
"src": "/openapi.json",
|
|
"dest": "/public/openapi.json"
|
|
},
|
|
{
|
|
"src": "/(.*)",
|
|
"dest": "/public/$1"
|
|
}
|
|
],
|
|
"headers": [
|
|
{
|
|
"source": "/api/(.*)",
|
|
"headers": [
|
|
{ "key": "X-Content-Type-Options", "value": "nosniff" },
|
|
{ "key": "X-Frame-Options", "value": "DENY" },
|
|
{ "key": "X-XSS-Protection", "value": "1; mode=block" },
|
|
{ "key": "Strict-Transport-Security", "value": "max-age=31536000; includeSubDomains" },
|
|
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
|
|
{ "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=()" }
|
|
]
|
|
}
|
|
]
|
|
}
|