chore: harden local dev environment
This commit is contained in:
@@ -2,6 +2,32 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
outputFileTracingRoot: process.cwd(),
|
||||
webpack(config, { dev }) {
|
||||
if (dev) {
|
||||
config.watchOptions = {
|
||||
...config.watchOptions,
|
||||
ignored: [
|
||||
"**/.agents/**",
|
||||
"**/.claude/**",
|
||||
"**/.codex/**",
|
||||
"**/.cursor/**",
|
||||
"**/.data/**",
|
||||
"**/.git/**",
|
||||
"**/.next/**",
|
||||
"**/.pi/**",
|
||||
"**/.playwright-mcp/**",
|
||||
"**/.serena/**",
|
||||
"**/.spec-workflow/**",
|
||||
"**/.trae/**",
|
||||
"**/.trellis/**",
|
||||
"**/output/**",
|
||||
"**/tmp/**",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user