From 9b0d734fc5ae53316b79bdaf85bf1577b1870afc Mon Sep 17 00:00:00 2001 From: ronload <91997734+ronload@users.noreply.github.com> Date: Sun, 25 Oct 2026 20:27:57 +0800 Subject: [PATCH] chore(next): add agent rules generated by next dev next dev writes this managed block to apps/web/AGENTS.md through its agentRules option, which is on by default, and writes it back if the file is deleted. Left untracked, it kept showing up as an untracked change. Committing it keeps the tree clean. Next.js only rewrites the content between the nextjs-agent-rules markers; anything added outside them is preserved. --- apps/web/AGENTS.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apps/web/AGENTS.md diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md new file mode 100644 index 0000000..af3b7c8 --- /dev/null +++ b/apps/web/AGENTS.md @@ -0,0 +1,9 @@ + + +## 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. + +