feat(client): fix the watch page

This commit is contained in:
perf3ct 2025-06-16 23:14:48 +00:00
parent 0d3fe26074
commit 6d462df990
2 changed files with 2 additions and 2 deletions

View File

@ -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'],

View File

@ -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);