Skip to content

Commit 75b9597

Browse files
committed
Fix the MSW service worker in the built docs
1 parent 8a59e48 commit 75b9597

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

misc/build-docs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ mv target/doc target/book/rustdoc
5050
cd frontend
5151
npm ci
5252
npx storybook build -o ../target/book/storybook
53-
cd ..
53+
# Copy the mock service worker to the root of the domain, else it won't load
54+
cp ../target/book/storybook/mockServiceWorker.js ../target/book/mockServiceWorker.js
55+
cd ..

0 commit comments

Comments
 (0)