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