Vite · VITE0016
Avoid broad Vite server.fs.allow entries
Keep Vite dev server filesystem allow lists scoped to project paths.
Run this rule
pnpm vite-doctor . --framework vite --rules vite/server/no-broad-fs-allow
Why it matters
Vite configuration runs in both dev and build pipelines. Narrow, explicit settings reduce surprises across SSR, workers, and local file access.
Recommended fix
Remove broad fs allow, or move it to the Vite runtime/API that owns that behavior.
Useful links
Example
Limit server.fs.allow
Before
export default defineConfig({
server: {
fs: { allow: ['..'] },
},
})
After
export default defineConfig({
server: {
fs: { allow: ['packages/ui'] },
},
})