diff --git a/src/sw.js b/src/sw.js index 7b6e5dae..db1a077e 100644 --- a/src/sw.js +++ b/src/sw.js @@ -3,7 +3,10 @@ const workboxVersion = 'v6.3.0' importScripts( `/workbox-${workboxVersion}/workbox-sw.js`) -workbox.setConfig({modulePathPrefix: `/workbox-${workboxVersion}`}) +workbox.setConfig({ + modulePathPrefix: `/workbox-${workboxVersion}`, + debug: Boolean(import.meta.env.VITE_WORKBOX_DEBUG), +}) import { precacheAndRoute } from 'workbox-precaching' precacheAndRoute(self.__WB_MANIFEST)