46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"version": 2,
|
|
"framework": null,
|
|
"buildCommand": "npm run native:build",
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-store"
|
|
},
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "Referrer-Policy",
|
|
"value": "no-referrer"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "Content-Security-Policy",
|
|
"value": "default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; worker-src 'self'; style-src 'self'; font-src 'self'; img-src 'self'; manifest-src 'self'; connect-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"functions": {
|
|
"api/server.mjs": {
|
|
"maxDuration": 300,
|
|
"includeFiles": "{public/**,native/bin/**}"
|
|
}
|
|
},
|
|
"rewrites": [
|
|
{
|
|
"source": "/(.*)",
|
|
"destination": "/api/server"
|
|
}
|
|
]
|
|
}
|