mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
docs: Black-hole zombie pages
This commit is contained in:
parent
a82cc80d1d
commit
c4c07583c3
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,15 @@ export default {
|
|||
const url = new URL(request.url);
|
||||
url.hostname = "docs-anw.pages.dev";
|
||||
|
||||
// These pages were removed, but may still be served due to Cloudflare's
|
||||
// [asset retention](https://developers.cloudflare.com/pages/configuration/serving-pages/#asset-retention).
|
||||
if (
|
||||
url.pathname === "/docs/assistant/context-servers" ||
|
||||
url.pathname === "/docs/assistant/model-context-protocol"
|
||||
) {
|
||||
return await fetch("https://zed.dev/404");
|
||||
}
|
||||
|
||||
let res = await fetch(url, request);
|
||||
|
||||
if (res.status === 404) {
|
||||
|
|
Loading…
Reference in a new issue