fix: update GitHub URL to use new proxy for faster access

This commit is contained in:
严浩
2025-07-15 22:53:54 +08:00
parent 7c0b455407
commit 010bafc235
3 changed files with 558 additions and 552 deletions
+1 -1
View File
@@ -8,6 +8,6 @@
"start": "wrangler dev" "start": "wrangler dev"
}, },
"devDependencies": { "devDependencies": {
"wrangler": "^3.60.3" "wrangler": "^4.24.3"
} }
} }
+556 -550
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -13,7 +13,7 @@ pnpm config set registry https://registry.npmmirror.com
let response = await fetch(`http://get.pnpm.io${url.pathname}`); let response = await fetch(`http://get.pnpm.io${url.pathname}`);
let text = await response.text(); let text = await response.text();
text = text.replace(/https:\/\/github.com/g, 'https://gh-cf.oo1.dev/https://github.com'); text = text.replace(/https:\/\/github.com/g, 'https://ghfast.top/https://github.com');
text = text.replace('Downloading pnpm from GitHub', 'Downloading pnpm from GitHub (via Cloudflare)'); text = text.replace('Downloading pnpm from GitHub', 'Downloading pnpm from GitHub (via Cloudflare)');
text = text.replace('Downloading pnpm', 'Downloading pnpm (via Cloudflare)'); text = text.replace('Downloading pnpm', 'Downloading pnpm (via Cloudflare)');
return new Response(text); return new Response(text);