Revert "fix: 修复部署问题"

This reverts commit ffb8e2f75277fa5d42579978e490b1404bf7fb5b.
This commit is contained in:
MoeFurina
2025-08-24 23:10:19 +08:00
committed by ImFurina
parent 7def05ed30
commit a2befaad75
2 changed files with 9 additions and 169 deletions
+9 -41
View File
@@ -1,46 +1,14 @@
{
"name": "netease-api-enhanced",
"buildCommand": "mkdir -p functions/api && cp -r module util plugins public data server.js package.json functions/api/",
"installCommand": "cd functions/api && npm install --only=production",
"outputDirectory": "functions/api",
"nodeVersion": "18.20.4",
"headers": [
"functions": [
{
"source": "/*",
"headers": [
{
"key": "Access-Control-Allow-Credentials",
"value": "true"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET,POST,PUT,DELETE,OPTIONS"
},
{
"key": "Access-Control-Allow-Headers",
"value": "X-CSRF-Token,X-Requested-With,Accept,Accept-Version,Content-Length,Content-MD5,Content-Type,Date,X-Api-Version"
},
{
"key": "Cache-Control",
"value": "no-cache"
}
]
}
],
"caches": [
{
"source": "/public/*",
"cacheTtl": 86400
}
],
"rewrites": [
{
"source": "/*",
"destination": "/api/[...default]"
"path": "/(.*)",
"method": ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
"handler": "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"
}
}
]
}