Skip to content

Commit 018e601

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

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) are large generated
41+
// directory trees. On macOS, chokidar watches them via kqueue which opens one
42+
// file descriptor per directory, pushing the process FD count high enough to
43+
// cause spawn EBADF when esbuild tries to start its service process.
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)