Skip to content

Commit

Permalink
fix(ssr): recrete ssrCompatModuleRunner on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 16, 2024
1 parent 30f256e commit 226a751
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ export async function _createServer(
server._ssrCompatModuleRunner?.close(),
])
server.resolvedUrls = null
server._ssrCompatModuleRunner = undefined
},
printUrls() {
if (server.resolvedUrls) {
Expand Down

0 comments on commit 226a751

Please sign in to comment.