chore: change test app to hybrid output
This commit is contained in:
parent
21a45d2610
commit
8e7bb178f8
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue