fix: update GitHub URL to use new proxy for faster access
This commit is contained in:
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"start": "wrangler dev"
|
"start": "wrangler dev"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"wrangler": "^3.60.3"
|
"wrangler": "^4.24.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+556
-550
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user