Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(storybook): fix mock service worker path #1060

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

vtsvetkov-splunk
Copy link
Contributor

@vtsvetkov-splunk vtsvetkov-splunk commented Feb 7, 2024

The problem

Storybook deployed on GH pages is down due to it is looking for a JS service worker at the root path (https://splunk.github.io/mockServiceWorker.js) instead of subpath `https://splunk.github.io/addonfactory-ucc-generator/storybook/mockServiceWorker.js

The fix

The fix proposed in mswjs/msw-storybook-addon#77 to add relative path instead of default absolute. I hope that would work

@vtsvetkov-splunk vtsvetkov-splunk requested a review from a team as a code owner February 7, 2024 09:59
@vtsvetkov-splunk vtsvetkov-splunk self-assigned this Feb 7, 2024
@vtsvetkov-splunk vtsvetkov-splunk enabled auto-merge (squash) February 7, 2024 10:02
@vtsvetkov-splunk vtsvetkov-splunk merged commit 99da650 into develop Feb 7, 2024
56 checks passed
@vtsvetkov-splunk vtsvetkov-splunk deleted the feature/storybook-msw-fix branch February 7, 2024 16:08
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants