Skip to content

Commit 554bdf9

Browse files
authored
Merge pull request #2710 from modernweb-dev/fix/sw-path
fix: sw path
2 parents efd8579 + 8a010d7 commit 554bdf9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/funny-days-judge.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@web/mocks": patch
3+
---
4+
5+
fix: sw path

packages/mocks/browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const worker = setupWorker();
77
const workerPromise = worker
88
.start({
99
serviceWorker: {
10-
url: '__msw_sw__.js',
10+
url: '/__msw_sw__.js',
1111
},
1212
quiet: true,
1313
// See https://github.com/mswjs/msw/discussions/1231#discussioncomment-2729999 if you'd like to warn if there's a unhandled request

0 commit comments

Comments
 (0)