changed config load

This commit is contained in:
2025-08-28 18:25:19 +02:00
parent a555396e2a
commit c4a2e1acf7
2 changed files with 4 additions and 12 deletions

View File

@@ -1,14 +1,6 @@
use config::Config;
use serde::Deserialize;
use crate::models::WatcherConfig;
#[derive(Debug, Deserialize, Clone)]
pub struct AppConfig {
pub watcher: WatcherConfig,
}
impl AppConfig {
impl WatcherConfig {
pub fn from_env() -> Result<Self, config::ConfigError> {
// Load .env file (works in both Docker and local development)
dotenvy::dotenv().ok();