diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..643577dfa --- /dev/null +++ b/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. + + diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000..43c994c2d --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/e2e/goals.spec.ts b/e2e/goals.spec.ts index d630b6033..13fcad59c 100644 --- a/e2e/goals.spec.ts +++ b/e2e/goals.spec.ts @@ -274,7 +274,7 @@ test("[Goals E2E] deleting a goal removes it from the list", async ({ }); // DELETE /api/goals/:id - await page.route("**/api/goals/**", async (route) => { + await page.route(/\/api\/goals\/(?!sync).*/, async (route) => { if (route.request().method() === "DELETE") { const url = route.request().url(); const id = url.split("/api/goals/")[1]?.split("?")[0];