From 50f77b06e3a758ddb1f1c274346ec3f0608863b1 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 22 Apr 2025 16:54:57 +0200 Subject: [PATCH] fix(build): temp fix until css bundler rewrite --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 715e08d..18d48de 100644 --- a/main.ts +++ b/main.ts @@ -8,7 +8,7 @@ app.use(staticFiles()) // temp fix before updating cssBundler middleware app.use(async (ctx) => { const response = await ctx.next() - if (response.status === 404) { + if (response.status === 404 && !response.url.match(/\/chunk-\w+\.js.*/)) { const ext = ctx.url.pathname.split('.').at(-1) ?? '.bin' const mime = contentType(ext) ?? 'application/octet-stream' const file = await Deno.readFile(`./_fresh/static/${ctx.url.pathname}`)