From 5125847ec41f9d216c70f7ee715ee5dc3850070e Mon Sep 17 00:00:00 2001 From: NotFurina Date: Tue, 5 Aug 2025 20:48:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=9D=E8=AF=95=E6=94=AF=E6=8C=81CF?= =?UTF-8?q?=20Worker=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _routes.json | 20 -------------------- netlify.toml.json | 20 -------------------- wrangler.json | 9 +++++++++ 3 files changed, 9 insertions(+), 40 deletions(-) delete mode 100644 _routes.json delete mode 100644 netlify.toml.json create mode 100644 wrangler.json 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