From 4ecc3327179f715f8557ff11856c0c2a1b20b7db Mon Sep 17 00:00:00 2001 From: Rizky Date: Tue, 2 Jul 2024 10:06:47 +0700 Subject: [PATCH] fix --- app/srv/api/prod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/srv/api/prod.ts b/app/srv/api/prod.ts index c5a771ec..d33caf65 100644 --- a/app/srv/api/prod.ts +++ b/app/srv/api/prod.ts @@ -86,12 +86,13 @@ export const _ = { } return new Response(""); } - case "code": { + case "code": { const arr = pathname.split("/").slice(2); const codepath = arr.join("/"); const build_path = code.path(site_id, "site", "build", codepath); if ( + g.code_index_cache && g.code_index_cache[site_id] && g.code_index_cache[site_id][build_path] && g.code_index_cache[site_id][build_path].content