Skip to content

Commit

Permalink
fix: reset resolvedUrls when server close
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 11, 2022
1 parent d0bb04f commit a087e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Expand Up @@ -380,13 +380,13 @@ export async function createServer(
process.stdin.off('end', exitProcess)
}
}

await Promise.all([
watcher.close(),
ws.close(),
container.close(),
closeHttpServer()
])
server.resolvedUrls = null
},
printUrls() {
if (server.resolvedUrls) {
Expand Down

0 comments on commit a087e53

Please sign in to comment.