Files
baserow/web-frontend/config/nuxt.config.dev.ts
Davide Silvestri 7cb44da431 chore(frontend): ignore .claude dir in vite watcher and fix Nitro EMFILE (#5038)
- Add .claude/ to vite server watch ignore list alongside node_modules
  and .git to avoid unnecessary file watching in worktrees.
- Configure Nitro devStorage to use fs-lite driver to prevent chokidar
  from watching the entire repo root, which causes EMFILE on macOS in
  large monorepos.
2026-03-26 17:54:05 +01:00

22 lines
673 B
TypeScript

import { defineNuxtConfig } from 'nuxt/config'
import baseConfig from './nuxt.config.base.ts'
export default defineNuxtConfig({
...baseConfig,
modules: [...(baseConfig.modules || []), '@nuxt/eslint'],
devtools: { enabled: true },
hooks: {
// Prevent Nitro's devStorage from watching the entire repo root with
// chokidar, which causes EMFILE on macOS in large monorepos / worktrees.
// See https://github.com/nuxt/nuxt/issues/30481
'nitro:config'(nitroConfig) {
nitroConfig.devStorage ??= {}
nitroConfig.devStorage['root'] = {
driver: 'fs-lite',
readOnly: true,
base: nitroConfig.rootDir,
}
},
},
})