mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
Revert "fix: 修复部署问题"
This reverts commit ffb8e2f75277fa5d42579978e490b1404bf7fb5b.
This commit is contained in:
+9
-41
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user