Skip to content

Commit

Permalink
fix: don't print urls on restart with default port (#11230)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Dec 7, 2022
1 parent a08ca07 commit 5aaecb6
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 @@ -811,7 +811,7 @@ async function restartServer(server: ViteDevServer) {
if (!middlewareMode) {
await server.listen(port, true)
logger.info('server restarted.', { timestamp: true })
if (port !== prevPort || host !== prevHost) {
if ((port ?? 5173) !== (prevPort ?? 5173) || host !== prevHost) {
logger.info('')
server.printUrls()
}
Expand Down

0 comments on commit 5aaecb6

Please sign in to comment.