mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 00:08:25 +00:00
- 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.
22 lines
673 B
TypeScript
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,
|
|
}
|
|
},
|
|
},
|
|
})
|