Skip to content

Commit f118b39

Browse files
committed
feat(compute): add default ignore patterns for serve command
- Add node_modules/ and target/ to default ignore patterns to prevent watching unnecessary dependency and build directories and avoid "too many open files" errors
1 parent 753bfb8 commit f118b39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/commands/compute/serve.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,8 @@ func ignoreFiles(watchDir argparser.OptionalString) *ignore.GitIgnore {
13501350
}
13511351

13521352
patterns = append(patterns, ".git/")
1353+
patterns = append(patterns, "node_modules/")
1354+
patterns = append(patterns, "target/")
13531355

13541356
return ignore.CompileIgnoreLines(patterns...)
13551357
}

0 commit comments

Comments
 (0)