Skip to content

Commit

Permalink
fix mocks/browser import
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Apr 7, 2024
1 parent 438da4d commit 43d9ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-websocket/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './index.css'

async function enableMocking() {
if (import.meta.env.VITE_USE_MOCKS) {
const { worker } = await import('../mocks/browser.ts')
const { worker } = await import('./mocks/browser.ts')
await worker.start({
onUnhandledRequest(request, print) {
const url = new URL(request.url)
Expand Down

0 comments on commit 43d9ac7

Please sign in to comment.