We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91c4465 commit acc49e8Copy full SHA for acc49e8
src/boot/msw-server.ts
@@ -4,7 +4,7 @@ import { handlers } from 'src/mocks'
4
5
export default defineBoot(({ router }) => {
6
// dev
7
- if (process.env.DEV) {
+ if (!process.env.DEV) {
8
const worker = setupWorker(...handlers)
9
worker.start({
10
onUnhandledRequest: 'bypass'
0 commit comments