diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index aa93a2ea0..8bd2978d4 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -18,6 +18,12 @@ const docsContainer = ({ children, context, ...props }) => { initialize({ onUnhandledRequest: "bypass", + serviceWorker: { + url: + location.hostname === "ably.github.io" + ? "/ably-ui/mockServiceWorker.js" + : "/mockServiceWorker.js", + }, }); const preview = { diff --git a/package.json b/package.json index 95393f852..bccf737f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ably/ui", - "version": "14.1.7", + "version": "14.1.8", "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.", "repository": { "type": "git", @@ -82,11 +82,7 @@ "ui", "tailwind", "ably", - "react", - "view-components" + "react" ], - "author": "Ably Real-time Ltd ", - "msw": { - "workerDirectory": "public" - } + "author": "Ably Real-time Ltd " }