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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 126 additions and 35 deletions

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;
},
};

View file

@ -0,0 +1,8 @@
name = "docs-proxy"
main = "src/worker.js"
compatibility_date = "2024-05-03"
workers_dev = true
[[routes]]
pattern = "zed.dev/docs*"
zone_name = "zed.dev"