Skip to content

Commit 035cffb

Browse files
authored
chore(storybook): use relative path for msw (#4173)
* chore(storybook): use relative path for msw * revert: removing msw workerDirectory
1 parent 21c71cf commit 035cffb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.storybook/preview.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ global.FOLDER_ID = global.FOLDER_ID || '69083462919';
1313
// NOTE: The token used is a readonly token accessing public data in a demo enterprise. DO NOT PUT A WRITE TOKEN
1414
global.TOKEN = global.TOKEN || 'P1n3ID8nYMxHRWvenDatQ9k6JKzWzYrz';
1515

16-
initialize();
16+
initialize({
17+
serviceWorker: {
18+
url: './mockServiceWorker.js',
19+
},
20+
});
1721

1822
const preview = {
1923
parameters: {

0 commit comments

Comments
 (0)