We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15cf328 commit 0283036Copy full SHA for 0283036
1 file changed
src/cli/cmd/dataset/zenodo.rs
@@ -24,8 +24,10 @@ pub struct ZenodoClient {
24
debug: bool,
25
}
26
27
-static BASE_URL: LazyLock<Url> =
28
- LazyLock::new(|| Url::parse("https://zenodo.org").expect("Invalid Base URL config"));
+static BASE_URL: LazyLock<Url> = LazyLock::new(|| {
+ Url::parse(&std::env::var("ZENODO_URL").unwrap_or("https://zenodo.org".to_string()))
29
+ .expect("Invalid Base URL config")
30
+});
31
32
#[derive(Debug, Snafu)]
33
pub enum Error {
0 commit comments