framework: fix sse args parse

This commit is contained in:
undefined committed 2025-11-09 01:06:24 +08:00
1 parent ccfa4674ed
commit d5f5126b95
2 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ export const apply = (ctx: Context) => {
const roots = [root];
if (process.env.WATCH_ROOT) roots.push(process.env.WATCH_ROOT);
const watcher = watch(roots, {
ignored: (file) => [
ignored: (file) => file.endsWith('.log') || [
'node_modules', '.git', 'logs', '.cache', '.yarn', 'tsconfig.tsbuildinfo',
].some((rule) => file.startsWith(`${rule}/`) || file.endsWith(`/${rule}`) || file.includes(`/${rule}/`)),
});