fix: disable service worker by default in production
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m6s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m6s
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user