mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-24 08:03:12 +00:00
27 lines
940 B
JSON
27 lines
940 B
JSON
{
|
|
"functions": {
|
|
"*": {
|
|
"memory": 1024,
|
|
"runtime": "nodejs18",
|
|
"timeout": 30
|
|
}
|
|
},
|
|
"routes": [
|
|
{
|
|
"src": "/(.*)",
|
|
"dest": "/api/[...default]",
|
|
"headers": {
|
|
"Access-Control-Allow-Credentials": "true",
|
|
"Access-Control-Allow-Origin": "*",
|
|
"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"
|
|
}
|
|
}
|
|
],
|
|
"buildCommand": "cp -r module functions/api/ && cp -r util functions/api/ && cp -r plugins functions/api/ && cp -r public functions/api/ && cp -r data functions/api/ && cp server.js functions/api/ && cp package.json functions/api/ && cd functions/api && npm install --only=production",
|
|
"outputDirectory": "functions/api",
|
|
"dev": {
|
|
"command": "npm install && npm start"
|
|
}
|
|
}
|