From b7dfc9ede10587db0a81fa1f3bc180d99ba49b01 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Sat, 6 Jun 2026 18:06:56 -0500 Subject: [PATCH] fix: add logging --- router/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/src/index.ts b/router/src/index.ts index 139646a..c505ceb 100644 --- a/router/src/index.ts +++ b/router/src/index.ts @@ -23,7 +23,9 @@ export default { if (url.pathname.startsWith("/docs")) { const origin = docsOrigin(url.host); - let response = await fetch(new URL(url.pathname, origin)); + let response = await fetch(new URL(url.pathname, docsOrigin(url.host))); + console.log({ from: url, to: new URL(url.pathname, docsOrigin(url.host)) }); + // Special case for Starlight's 404 page let status = response.status; -- 2.51.2