MSW does not seem to work when basePath is set in Next.js #1141
-
As a result, the mocking is enabled but MSW can't intercept requests anymore. I am just wondering what is the best practise to make MSW work in such case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey, @dankremniov. What happens is that you register the MSW worker at the Can you please confirm that's the case?
|
Beta Was this translation helpful? Give feedback.
-
I advise following this answer to get MSW working with the base path in NextJS. |
Beta Was this translation helpful? Give feedback.
I advise following this answer to get MSW working with the base path in NextJS.