21 lines
553 B
JSON

{
"version": 2,
"buildCommand": "npm install && npm run build",
"functions": {
"api/index.js": {
"runtime": "nodejs18.x"
}
},
"routes": [
{
"pattern": "/(.*)",
"script": "api/index.js",
"headers": {
"Access-Control-Allow-Credentials": "true",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
}
}
]
}