Skip to content

Commit

Permalink
修改配置,prod启用mock
Browse files Browse the repository at this point in the history
  • Loading branch information
little3201 committed Nov 26, 2024
1 parent bbf9785 commit 7d5f48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/msw-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { handlers } from 'src/mocks' // 您的请求处理程序

export default boot(() => {
// dev
if (process.env.DEV) {
if (process.env.PROD) {
const worker = setupWorker(...handlers)
worker.start()
}
Expand Down

0 comments on commit 7d5f48d

Please sign in to comment.