Skip to content

Commit

Permalink
fix(middleware-mode): call all hot.listen when server restart (#18261)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Oct 7, 2024
1 parent 5212d09 commit 007773b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ async function restartServer(server: ViteDevServer) {
if (!middlewareMode) {
await server.listen(port, true)
} else {
server.ws.listen()
Object.values(server.environments).forEach((e) => e.hot.listen())
}
logger.info('server restarted.', { timestamp: true })

Expand Down

0 comments on commit 007773b

Please sign in to comment.