Browse Source

tell user about basepath (#4298)

Jonathan Kelley 1 week ago
parent
commit
09d8e3aef2
1 changed files with 12 additions and 1 deletions
  1. 12 1
      packages/cli/src/serve/output.rs

+ 12 - 1
packages/cli/src/serve/output.rs

@@ -654,7 +654,18 @@ impl Output {
 
         // todo(jon) should we write https ?
         let address = match state.server.displayed_address() {
-            Some(address) => format!("http://{}", address).blue(),
+            Some(address) => format!(
+                "http://{}{}",
+                address,
+                state
+                    .runner
+                    .client
+                    .build
+                    .base_path()
+                    .map(|f| format!("/{f}/"))
+                    .unwrap_or_default()
+            )
+            .blue(),
             None => "no server address".dark_gray(),
         };