Skip to content

Commit

Permalink
Upgrade to Wrangler 3.22.2 with unstable_dev connection refused fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Jan 4, 2024
1 parent ab60d85 commit a687a5e
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 317 deletions.
2 changes: 2 additions & 0 deletions features/support/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ BeforeAll(async () => {
MOCK_DATE: '2023-08-27 00:00:00 GMT+8',
},
experimental: { disableExperimentalWarning: true },
ip: '127.0.0.1',
})
mockWorker = await unstable_dev('mock/index.ts', {
env: 'test',
experimental: { disableExperimentalWarning: true },
ip: '127.0.0.1',
})
})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"vite": "^4.4.12",
"vitest": "^0.x",
"vue-tsc": "^1.8.8",
"wrangler": "3.8.0",
"wrangler": "^3.22.2",
"zod": "^3.22.4"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions worker/vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default function WorkerProxy(proxyConfig: ProxyConfig): Plugin {
disableExperimentalWarning: true,
testMode: false,
},
ip: '127.0.0.1',
})

server.middlewares.use(async (r, w, next) => {
Expand Down
Loading

0 comments on commit a687a5e

Please sign in to comment.