Skip to content

Commit

Permalink
chore: use build.rs to build frontend resources
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Oct 25, 2024
1 parent c21884e commit 409fdb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'a> FormatDisplay<'a> {
eprintln!("Failed to start server: {}", e);
}
});

println!("");
return Ok(());
}

Expand Down
7 changes: 1 addition & 6 deletions cli/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ pub async fn start_server_and_open_browser<'a>(explain_result: String) -> Result
let url = format!("http://0.0.0.0:{}", port);
println!("Started a new server at: {url}");

// Open the browser in a separate task
println!(
"env {} | {}",
env::var("SSH_CLIENT").is_ok(),
env::var("SSH_TTY").is_ok()
);
// Open the browser in a separate task if not in ssh mode
let in_sshmode = env::var("SSH_CLIENT").is_ok() || env::var("SSH_TTY").is_ok();
if !in_sshmode {
tokio::spawn(async move {
Expand Down

0 comments on commit 409fdb0

Please sign in to comment.