Skip to content

Commit bcb11f8

Browse files
committed
chore: increase LARGE_FILE_THRESHOLD from 500KB to 5MB
Raise the threshold for triggering large file handling from 500KB to 5MB. This allows more files to benefit from full content persistence in LocalStorage while still protecting against quota issues with very large files.
1 parent 245ffa5 commit bcb11f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
1212
import { mergeFilesWithReplacement } from './utils/mergeFiles.js';
1313

1414
// Threshold for "large file" - files above this won't have content persisted
15-
const LARGE_FILE_THRESHOLD = 500 * 1024; // 500KB of content
15+
const LARGE_FILE_THRESHOLD = 5 * 1024 * 1024; // 5MB of content
1616

1717
// Default global parsing configuration
1818
export const DEFAULT_GLOBAL_PARSING_CONFIG = {

0 commit comments

Comments
 (0)