Issue 198
docs: Bring guidelines up to date with Next 16 and the SEO fix
Back to our planDone
documentationtoolingpriority: medium
Type
documentation
Summary
Some guideline and role-guide lines describe APIs that change with the Next.js 16 upgrade (#120) and the SEO image fix (#196, PR #197). Agents follow these files, so wrong lines lead to wrong code. These are fact updates, not rule changes. They sit in policy paths (docs/guidelines/, docs/roles/), though, so they wait for the owner.
Problem
| File | Line | Out of date |
|---|---|---|
docs/guidelines/nextjs-tailwind.md | 1 | Title says "Next.js 15" |
docs/guidelines/nextjs-tailwind.md | 48 | Says to use revalidateTag(). In Next 16 it needs a second argument; the repo uses expireCacheTag() from src/platform/payload/expireCacheTag.ts |
docs/guidelines/payload-cms.md | 56 | Same revalidateTag() advice |
docs/guidelines/payload-cms.md | "SEO Plugin Type Gap" | Describes casts that #197 removes; meta.image is typed now |
docs/guidelines/development.md | 19 | Calls the extension point "Next.js middleware"; it's proxy in Next 16 |
docs/roles/frontend-eng.md | 21 | Same revalidateTag() advice |
Proposed fix
Update those lines after #120 and #197 merge. If you agree, also add a line to AGENTS.md (step 3) letting factual fixes in docs/guidelines/ and docs/roles/ (API names, versions, links) skip owner sign-off, the way docs/process/ already does.
Acceptance criteria
- Not done: No guideline or role guide tells agents to call
revalidateTag()with one argument, or to castmeta.image. - Not done: The owner has decided on the fact-fix exception.
Depends on
#120, #196
Area
tooling
Priority
priority: medium
Generated by Claude Code, opens in a new tab