Skip to content

Commit 0283036

Browse files
committed
chore: add zenodo URL env var
1 parent 15cf328 commit 0283036

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cli/cmd/dataset/zenodo.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ pub struct ZenodoClient {
2424
debug: bool,
2525
}
2626

27-
static BASE_URL: LazyLock<Url> =
28-
LazyLock::new(|| Url::parse("https://zenodo.org").expect("Invalid Base URL config"));
27+
static BASE_URL: LazyLock<Url> = LazyLock::new(|| {
28+
Url::parse(&std::env::var("ZENODO_URL").unwrap_or("https://zenodo.org".to_string()))
29+
.expect("Invalid Base URL config")
30+
});
2931

3032
#[derive(Debug, Snafu)]
3133
pub enum Error {

0 commit comments

Comments
 (0)