Skip to content

Commit ade319f

Browse files
committed
Exclude generated dirs from Nuxt dev watcher
1 parent 4a1a1f0 commit ade319f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nuxt/nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export default defineNuxtConfig({
3737
}
3838
},
3939

40+
// public/ (11ty static output) and .output/ (nuxt build) contain 15k+ generated files.
41+
// On macOS, watching them all opens ~15k file descriptors which causes spawn EBADF
42+
// when the esbuild service process tries to start. Excluding them from Nuxt's
43+
// watcher (isIgnored check) prevents chokidar from opening per-file kqueue FDs.
44+
// ignore: ['public/**', '.output/**'],
45+
4046
// Dev proxying to 11ty is handled by server/middleware/legacy.ts
4147
// to allow per-route exclusions as pages are migrated.
4248
})

0 commit comments

Comments
 (0)