Skip to content

Commit

Permalink
BED-5072 fix local dev infinite loop (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Holocraft authored Dec 23, 2024
1 parent c062f0f commit 348c669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ui/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 348c669

Please sign in to comment.