fix: disable service worker by default in production
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m6s

This commit is contained in:
2026-03-02 21:20:47 +01:00
parent 3e5687441d
commit 6a06e5a7d3
3 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,8 @@ export const isServiceWorkerEnabledInDev = (): boolean => {
if (legacyValue === "true") return true;
if (legacyValue === "false") return false;
return process.env.NODE_ENV !== "development";
// Disabled by default in all environments; user preference can override.
return false;
};
export const setServiceWorkerEnabledInDev = (enabled: boolean): void => {