We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e245283 commit 811ee9cCopy full SHA for 811ee9c
src/main.rs
@@ -50,11 +50,15 @@ fn main() -> anyhow::Result<()> {
50
.unwrap_or_default()
51
.to_string();
52
53
+ static DEFAULT_SERVER_URL: Option<&str> = std::option_env!("DEFAULT_SERVER_URL");
54
+ log::info!("DEFAULT_SERVER_URL: {:?}", DEFAULT_SERVER_URL);
55
+
56
let mut server_url = nvs
57
.get_str("server_url", &mut str_buf)
58
.map_err(|e| log::error!("Failed to get server_url: {:?}", e))
59
.ok()
60
.flatten()
61
+ .or(DEFAULT_SERVER_URL)
62
63
64
0 commit comments