From 9a5323b3b415c7da33820ea77261c9390bd35397 Mon Sep 17 00:00:00 2001 From: Solomon Date: Wed, 19 Nov 2025 18:30:03 +0000 Subject: [PATCH] Prefer runtime env variable VK_SHARED_API_BASE (#1340) Enables testing a pre-release with a dev version of remote. --- crates/local-deployment/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/local-deployment/src/lib.rs b/crates/local-deployment/src/lib.rs index f16b735a..65fe10b8 100644 --- a/crates/local-deployment/src/lib.rs +++ b/crates/local-deployment/src/lib.rs @@ -132,9 +132,9 @@ impl Deployment for LocalDeployment { let profile_cache = Arc::new(RwLock::new(None)); let auth_context = AuthContext::new(oauth_credentials.clone(), profile_cache.clone()); - let api_base = option_env!("VK_SHARED_API_BASE") - .map(|s| s.to_string()) - .or_else(|| std::env::var("VK_SHARED_API_BASE").ok()); + let api_base = std::env::var("VK_SHARED_API_BASE") + .ok() + .or_else(|| option_env!("VK_SHARED_API_BASE").map(|s| s.to_string())); let remote_client = match api_base { Some(url) => match RemoteClient::new(&url, auth_context.clone()) {