From 01ecdcb6633d1c1f332b945d4722fec6bdaece72 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 18 Dec 2022 00:07:05 +0000 Subject: [PATCH] fix: enable pwa module in production --- config/pwa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/pwa.ts b/config/pwa.ts index 5f288d1e..f6a83810 100644 --- a/config/pwa.ts +++ b/config/pwa.ts @@ -6,7 +6,7 @@ const isPreview = process.env.PULL_REQUEST === 'true' const pwa: VitePWANuxtOptions = { mode: isCI ? 'production' : 'development', // disabled PWA only on production - disable: !isPreview && process.env.VITE_DEV_PWA !== 'true', + disable: !isCI && process.env.VITE_DEV_PWA !== 'true', scope: '/', srcDir: './service-worker', filename: 'sw.ts',