From ffd450078cbb01fc01275ac8887549c0fac3e817 Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Thu, 19 Dec 2024 13:19:09 +0100 Subject: [PATCH] Fixed: update MSW initialization to include *relative* service worker URL (#1441) Related to #1440 --- frontend/.storybook/preview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/.storybook/preview.js b/frontend/.storybook/preview.js index c40ed9dc1..c1ef4a93a 100644 --- a/frontend/.storybook/preview.js +++ b/frontend/.storybook/preview.js @@ -9,7 +9,11 @@ initAudioListener(); initWebAudioListener(); // Initialize MSW -initialize() +initialize({ + serviceWorker: { + url: './mockServiceWorker.js', + }, +}); /** @type { import('@storybook/react').Preview } */ const preview = {