fix(config): disable Next.js 16 auto-generated agent-rules files

\`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 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-10 03:19:25 +02:00
co-authored by Claude Sonnet 5
parent 1600d99c5d
commit 849acf4c34
+6
View File
@@ -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.