diff --git a/examples/crm/src/index.tsx b/examples/crm/src/index.tsx index 076c49c7740..a685addf86a 100644 --- a/examples/crm/src/index.tsx +++ b/examples/crm/src/index.tsx @@ -7,13 +7,19 @@ import { worker } from './providers/fakerest/fakeServer'; const container = document.getElementById('root'); const root = createRoot(container!); -worker.start({ onUnhandledRequest: 'bypass', quiet: true }).then(() => { - root.render( - - - - ); -}); +worker + .start({ + onUnhandledRequest: 'bypass', + quiet: true, + serviceWorker: { url: './mockServiceWorker.js' }, + }) + .then(() => { + root.render( + + + + ); + }); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log))