edgee_components/lib.rs
1use std::sync::LazyLock;
2
3pub mod auth;
4
5const DEFAULT_API_ENDPOINT_BASE_URL: &str = "https://api.edgee.cloud";
6pub static API_ENDPOINT_BASE_URL: LazyLock<String> = LazyLock::new(|| {
7 use std::env;
8
9 env::var("EDGEE_API_ENDPOINT_BASE_URL")
10 .unwrap_or_else(|_| DEFAULT_API_ENDPOINT_BASE_URL.to_owned())
11});