diff --git a/vite.config.ts b/vite.config.ts index 5fdb81c..466d139 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -64,7 +64,7 @@ export default defineConfig(({ mode }) => ({ strategies: "injectManifest", registerType: "autoUpdate", devOptions: { - enabled: mode !== "production", + enabled: !["production", "staging"].includes(mode), }, srcDir: "src/serviceworker", filename: "main.ts",