vite-plugin-pwa: enable production sw for staging
All checks were successful
/ depoly (push) Successful in 1m21s
All checks were successful
/ depoly (push) Successful in 1m21s
This commit is contained in:
parent
b22ac67c3a
commit
4075c41942
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue