From 8e7bb178f82d138ff4eaf3e4777f0e17324664e4 Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sun, 18 Aug 2024 12:56:37 +0200 Subject: [PATCH] chore: change test app to hybrid output --- astro.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 0e0bc91..c78e264 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,7 +5,7 @@ import node from "@astrojs/node"; import serviceWorker from "./index.js"; export default defineConfig({ - output: "server", + output: "hybrid", adapter: node({ mode: "middleware" }), @@ -28,7 +28,7 @@ export default defineConfig({ waiting: () => console.log('>>> waiting...'), active: () => console.log('>>> active...'), error: (error) => console.error('>>> error', error), - afterRegistration: async () => { + 'afterRegistration': async () => { const sw = await navigator.serviceWorker.getRegistration(); console.log('>>> registrered', sw) }