From 8b7eb9273bd93084e000eeffd538be0634b3a324 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 14 Nov 2024 19:07:13 +0100 Subject: [PATCH] Fix the MSW service worker in the built docs --- misc/build-docs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/build-docs.sh b/misc/build-docs.sh index e849e7eb2..35eb2af69 100644 --- a/misc/build-docs.sh +++ b/misc/build-docs.sh @@ -50,4 +50,6 @@ mv target/doc target/book/rustdoc cd frontend npm ci npx storybook build -o ../target/book/storybook -cd .. \ No newline at end of file +# Copy the mock service worker to the root of the domain, else it won't load +cp ../target/book/storybook/mockServiceWorker.js ../target/book/mockServiceWorker.js +cd ..