start work on client side explorer

This commit is contained in:
Jacky Zhao
2025-03-06 22:35:24 -08:00
parent a201105442
commit 08717394ff
20 changed files with 681 additions and 593 deletions

View File

@@ -37,6 +37,7 @@ export async function fetchCanonical(url: URL): Promise<Response> {
if (!res.headers.get("content-type")?.startsWith("text/html")) {
return res
}
// reading the body can only be done once, so we need to clone the response
// to allow the caller to read it if it's was not a redirect
const text = await res.clone().text()