diff --git a/frontend/app/service-worker-provider.tsx b/frontend/app/service-worker-provider.tsx index ff571a0..93fb01a 100644 --- a/frontend/app/service-worker-provider.tsx +++ b/frontend/app/service-worker-provider.tsx @@ -28,7 +28,9 @@ export function ServiceWorkerProvider() { } }; - if (process.env.NODE_ENV === 'production') { + const isProduction = window.location.hostname === 'basetracker.lona-development.org'; + + if (isProduction) { registerServiceWorker(); } else { navigator.serviceWorker.getRegistration(SW_PATH).then((registration) => {