From 9652f07e560a1d996dc4b7fde9aa96d21fbaa5ef Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 3 Jul 2025 10:51:11 +0100 Subject: [PATCH] Storybook: Serve msw worker from relative path (#107561) --- packages/grafana-ui/.storybook/preview.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/grafana-ui/.storybook/preview.ts b/packages/grafana-ui/.storybook/preview.ts index bff4cd763b7..41311f34244 100644 --- a/packages/grafana-ui/.storybook/preview.ts +++ b/packages/grafana-ui/.storybook/preview.ts @@ -51,6 +51,9 @@ if (process.env.NODE_ENV === 'development') { */ initialize({ onUnhandledRequest: 'bypass', + serviceWorker: { + url: 'mockServiceWorker.js', + }, }); const preview: Preview = {