Deploy install.sh to cloudflare (#11866)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2024-05-15 10:35:30 -06:00
committed by GitHub
parent f7c5d70740
commit 247825bdd3
8 changed files with 126 additions and 35 deletions
+14
View File
@@ -0,0 +1,14 @@
export default {
async fetch(request, _env, _ctx) {
const url = new URL(request.url);
url.hostname = "docs-anw.pages.dev";
let res = await fetch(url, request);
if (res.status === 404) {
res = await fetch("https://zed.dev/404");
}
return res;
},
};