diff --git a/_routes.json b/_routes.json deleted file mode 100644 index 59ec587..0000000 --- a/_routes.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": 2, - "buildCommand": "npm install && npm run build", - "functions": { - "api/index.js": { - "runtime": "nodejs18.x" - } - }, - "routes": [ - { - "pattern": "/(.*)", - "script": "api/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" - } - } - ] -} diff --git a/netlify.toml.json b/netlify.toml.json deleted file mode 100644 index 97090f3..0000000 --- a/netlify.toml.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "functions": { - "api/index.js": { - "included_files": ["index.js"], - "runtime": "nodejs18.x" - } - }, - "redirects": [ - { - "source": "/(.*)", - "destination": "/api/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" - }, - "status": 200 - } - ] -} diff --git a/wrangler.json b/wrangler.json new file mode 100644 index 0000000..71a5373 --- /dev/null +++ b/wrangler.json @@ -0,0 +1,9 @@ +{ + "name": "NeteaseCloudMusicApiEnhanced", + "main": "app.js", + "compatibility_date": "2025-08-05", + "compatibility_flags": ["nodejs_compat"], + "service": { + "environment": "production" + } +} \ No newline at end of file