From d57affe4ac7371ee3b4912627fba607e6f7ff047 Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sun, 25 Aug 2024 14:03:57 +0200 Subject: [PATCH] feat: remove output check in ssr step --- astro-sw.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/astro-sw.js b/astro-sw.js index 7ede52a..de22205 100644 --- a/astro-sw.js +++ b/astro-sw.js @@ -122,9 +122,7 @@ declare const __prefix: string;` injectTypes({ filename: 'caching.d.ts', content: injectedTypes }) }, 'astro:build:ssr': ({ manifest }) => { - if (output !== 'static') { - assets = manifest.assets - } + assets = manifest.assets }, 'astro:build:done': async ({ dir, routes, pages, logger }) => { const outfile = fileURLToPath(new URL('./sw.js', dir));