From aac31071bfe484dab1c3f63aae1786e00cb09bfc Mon Sep 17 00:00:00 2001 From: Hymmel Date: Wed, 15 Oct 2025 13:57:00 +0200 Subject: [PATCH] serviceWorker --- frontend/app/service-worker-provider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) => {