Replies: 3 comments 2 replies
-
If it is indeed an issue, I would love to resolve it! 😊 |
Beta Was this translation helpful? Give feedback.
-
I just noticed in the readme that this was intentional, but keeping it enabled in a production environment can't end up causing some first release issue? |
Beta Was this translation helpful? Give feedback.
-
Hey, @Luccasoli. Thank you for raising this, it's a great question. The documentation is correct: MSW should generally not be enabled in production, as there's very little reason for using mocks in production. In the case of NextJS, the intention was to keep the environmental variable controlling MSW enabled so that you can witness MSW working in your preview builds. I don't think that keeping it enabled in the production I've raised the question of whether NextJS has a preview-specific |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Here you can see what I described in the title, and in the documentation it is recommended to keep the service worker disabled to prevent incorrect information (mocked data) for the user.
I'm now starting to study msw, sorry if it's a false bug
Environment
Next js template with msw
Expected behavior
the value should be
disabled
Beta Was this translation helpful? Give feedback.
All reactions