From 0a3a43ba9e344036eeba5b9db997a1f7f638e467 Mon Sep 17 00:00:00 2001 From: Vibe Code Date: Sat, 8 Aug 2026 00:10:29 +0200 Subject: [PATCH] web-docs: stop tracking the file next dev writes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AGENTS.md is generated by next dev — node_modules/next/dist/server/lib/ generate-agent-files.js — and I committed it by accident while debugging the Base UI error, having run the dev server to get an unminified message. It is not a source file and nobody asked for it. Untracked and ignored, so Next can keep recreating it locally without it turning up in a diff. --- web-docs/.gitignore | 4 +++- web-docs/AGENTS.md | 9 --------- 2 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 web-docs/AGENTS.md diff --git a/web-docs/.gitignore b/web-docs/.gitignore index 233a1218..b80722d5 100644 --- a/web-docs/.gitignore +++ b/web-docs/.gitignore @@ -24,4 +24,6 @@ yarn-error.log* .env*.local .vercel next-env.d.ts -.mcp.json \ No newline at end of file +.mcp.json +# Written by `next dev` on every run; not a source file. +AGENTS.md diff --git a/web-docs/AGENTS.md b/web-docs/AGENTS.md deleted file mode 100644 index 643577df..00000000 --- a/web-docs/AGENTS.md +++ /dev/null @@ -1,9 +0,0 @@ - - -# This is NOT the Next.js you know - -This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. - -This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. - -