Skip to content

Commit

Permalink
fix(cli): reorder dev server message (#5141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 29, 2021
1 parent 7426c85 commit 5fb3e0f
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 5fb3e0f

Please sign in to comment.