mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-24 00:21:23 +08:00
用ai试试
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user