diff --git a/frontend/src/pages/WatchFolderPage.tsx b/frontend/src/pages/WatchFolderPage.tsx index 7b26ca1..e700daa 100644 --- a/frontend/src/pages/WatchFolderPage.tsx +++ b/frontend/src/pages/WatchFolderPage.tsx @@ -52,7 +52,7 @@ const WatchFolderPage: React.FC = () => { // Mock configuration data (would typically come from API) const watchConfig: WatchConfig = { - watchFolder: process.env.REACT_APP_WATCH_FOLDER || './watch', + watchFolder: import.meta.env.VITE_WATCH_FOLDER || './watch', watchInterval: 30, maxFileAge: 24, allowedTypes: ['pdf', 'png', 'jpg', 'jpeg', 'tiff', 'bmp', 'txt', 'doc', 'docx'], diff --git a/tests/universal_source_sync_tests.rs b/tests/universal_source_sync_tests.rs index c0f05a4..5f0376e 100644 --- a/tests/universal_source_sync_tests.rs +++ b/tests/universal_source_sync_tests.rs @@ -198,7 +198,7 @@ fn test_config_parsing_s3() { assert!(config.is_ok(), "S3 config should parse successfully"); let s3_config = config.unwrap(); - assert_eq!(s3_config.bucket, "test-documents"); + assert_eq!(s3_config.bucket_name, "test-documents"); assert_eq!(s3_config.region, "us-east-1"); assert_eq!(s3_config.prefix, "documents/"); assert_eq!(s3_config.sync_interval_minutes, 120);