Skip to content

Commit

Permalink
fix(cli): reorder dev server message (vitejs#5141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and aleclarson committed Nov 8, 2021
1 parent 06d5ae2 commit f5c7690
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/vite/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ cli
server: cleanOptions(options)
})

if (!server.httpServer) {
throw new Error('HTTP server not available')
}

await server.listen()

const info = server.config.logger.info

info(
Expand All @@ -102,12 +108,6 @@ cli
}
)

if (!server.httpServer) {
throw new Error('HTTP server not available')
}

await server.listen()

printHttpServerUrls(server.httpServer, server.config, options)

// @ts-ignore
Expand Down

0 comments on commit f5c7690

Please sign in to comment.