mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 14:43:10 +00:00
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"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": [
|
|
{
|
|
"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]"
|
|
}
|
|
]
|
|
}
|