From 348c669ad254bd31bacaec70ea0fd96c395b4856 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 23 Dec 2024 14:24:13 -0800 Subject: [PATCH] BED-5072 fix local dev infinite loop (#1008) --- cmd/ui/src/main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ui/src/main.tsx b/cmd/ui/src/main.tsx index 00f27bdb05..5f770d15e7 100644 --- a/cmd/ui/src/main.tsx +++ b/cmd/ui/src/main.tsx @@ -84,7 +84,7 @@ const main = async () => { const rootContainer = document.getElementById('root'); const root = createRoot(rootContainer!); - if (import.meta.env.DEV) { + if (import.meta.env.DEV && location.pathname.startsWith('/ui/')) { const { worker } = await import('./mocks/browser'); await worker.start({ serviceWorker: {