From 849acf4c349da257172c3e4836f66048ebdde42e Mon Sep 17 00:00:00 2001 From: Do Siki Date: Thu, 10 Sep 2026 03:19:25 +0200 Subject: [PATCH] fix(config): disable Next.js 16 auto-generated agent-rules files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit \`next dev\` (Next.js 16) writes proto/AGENTS.md and proto/CLAUDE.md on every run to brief AI agents on framework changes. This project already has its own agent instruction system (root CLAUDE.md -> .agent/) — a second, unrelated proto/CLAUDE.md stub would conflict with/shadow it for anyone working inside proto/. Disabled via agentRules: false. Verified live: MITHOME-86's admin route renders end-to-end against a real MongoDB (docker-compose.dev.yml mongodb service) — GET /admin 200 with the create-first-user flow, GET /api/users correctly 403s for an anonymous request, /api/health unaffected. Co-Authored-By: Claude Sonnet 5 --- proto/next.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proto/next.config.ts b/proto/next.config.ts index 61b4aab..aba533e 100755 --- a/proto/next.config.ts +++ b/proto/next.config.ts @@ -5,6 +5,12 @@ const nextConfig: NextConfig = { // Enable standalone output for Docker deployment output: 'standalone', + // NOTE (Next.js 16): `next dev` auto-generates AGENTS.md/CLAUDE.md stub + // files describing the framework to AI agents. This project already has + // its own agent instruction system (root CLAUDE.md -> .agent/) — a second, + // unrelated proto/CLAUDE.md would conflict with it, so this is disabled. + agentRules: false, + // NOTE (Next.js 16): `eslint.ignoreDuringBuilds` was removed — `next build` // no longer runs ESLint itself (lint is now only `next lint` / `npm run lint`), // so there is nothing left to ignore here.