feat(client): fix the watch page
This commit is contained in:
parent
a47960a059
commit
3ef3af6ca8
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue