diff --git a/ui/.storybook/preview.tsx b/ui/.storybook/preview.tsx index 11b0af8b2..3f1bcfa45 100644 --- a/ui/.storybook/preview.tsx +++ b/ui/.storybook/preview.tsx @@ -6,6 +6,9 @@ import { withSplunkThemeToolbar } from './withSplunkTheme'; // Initialize MSW initialize({ + serviceWorker: { + url: './mockServiceWorker.js', + }, onUnhandledRequest(req) { const url = req.url; const skipList = ['bundle.js', 'hot-update.js', 'http://localhost:6006/index.json'];