fix(sw): remove debug option via env as it would not be replaced correctly in prod builds
This commit is contained in:
@ -11,7 +11,6 @@ const workboxVersion = 'v7.0.0'
|
||||
importScripts(`${fullBaseUrl}workbox-${workboxVersion}/workbox-sw.js`)
|
||||
workbox.setConfig({
|
||||
modulePathPrefix: `${fullBaseUrl}workbox-${workboxVersion}`,
|
||||
debug: Boolean(import.meta.env.VITE_WORKBOX_DEBUG),
|
||||
})
|
||||
|
||||
import { precacheAndRoute } from 'workbox-precaching'
|
||||
|
Reference in New Issue
Block a user