diff --git a/backend/sync_server/src/app_state.rs b/backend/sync_server/src/app_state.rs index dfec42c7..b17963b8 100644 --- a/backend/sync_server/src/app_state.rs +++ b/backend/sync_server/src/app_state.rs @@ -9,9 +9,9 @@ pub struct AppState { impl AppState { pub async fn try_new() -> Result { - let path = std::path::Path::new(CONFIG_PATH); + let path = std::path::Path::new(CONFIG_PATH).canonicalize()?; - let config = Config::read(path).await?; + let config = Config::read(&path).await?; let database = Database::try_new(&config.database).await?; Ok(Self { config, database })