diff --git a/src/config.rs b/src/config.rs index b528114..1baf3e8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -230,7 +230,10 @@ pub fn load(path: &str) -> Result { } pub static CONFIG: LazyLock = LazyLock::new(|| { - match load("config.json") { + let config_path = var("CONFIG"); + let config_path = config_path.as_deref().unwrap_or("config.json"); + + match load(config_path) { Ok(config) => config, Err(err) => { // Avoid panicking