This commit is contained in:
Rizky 2024-08-01 17:49:09 +07:00
parent b1088b537c
commit 2474b88931
1 changed files with 10 additions and 16 deletions

View File

@ -90,7 +90,6 @@ export const _ = {
const codepath = arr.join("/");
const build_path = code.path(site_id, "site", "build", codepath);
try {
let file = Bun.file(build_path);
return new Response(
await gzipAsync(new Uint8Array(await file.arrayBuffer())),
@ -101,11 +100,6 @@ export const _ = {
},
}
);
} catch (e) {
return new Response("location.reload", {
headers: { "content-type": "application/javascript" },
});
}
}
case "route": {
if (!g.route_cache) g.route_cache = {};