Skip to content

Commit 1ee0014

Browse files
authoredMay 1, 2023
fix(server): should respect hmr port when middlewareMode=false (#13040)
1 parent 0c9f1f4 commit 1ee0014

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎packages/vite/src/node/server/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,8 @@ export async function _createServer(
675675
const listen = httpServer.listen.bind(httpServer)
676676
httpServer.listen = (async (port: number, ...args: any[]) => {
677677
try {
678+
// ensure ws server started
679+
ws.listen()
678680
await initServer()
679681
} catch (e) {
680682
httpServer.emit('error', e)

0 commit comments

Comments
 (0)
Please sign in to comment.