Skip to content

Commit

Permalink
Cleanup "started server on" message (#48972)
Browse files Browse the repository at this point in the history
We bind to an IPv6 unspecified address (`::`), which makes the old message say "started server on :::3000", and that's kinda ugly. The new message will say "[::]:3000".
  • Loading branch information
jridgewell committed Apr 29, 2023
1 parent e66c625 commit b33179c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/next-swc/crates/next-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,9 @@ pub async fn start_server(options: &DevServerOptions) -> Result<()> {
{
let index_uri = ServerAddr::new(server.addr).to_string()?;
println!(
"{} - started server on {}:{}, url: {}",
"{} - started server on {}, url: {}",
"ready".green(),
server.addr.ip(),
server.addr.port(),
server.addr,
index_uri
);
if !options.no_open {
Expand Down

0 comments on commit b33179c

Please sign in to comment.