Skip to content
SprecherEast
Issue 198

docs: Bring guidelines up to date with Next 16 and the SEO fix

Back to our plan
Done
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

FileLineOut of date
docs/guidelines/nextjs-tailwind.md1Title says "Next.js 15"
docs/guidelines/nextjs-tailwind.md48Says 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.md56Same revalidateTag() advice
docs/guidelines/payload-cms.md"SEO Plugin Type Gap"Describes casts that #197 removes; meta.image is typed now
docs/guidelines/development.md19Calls the extension point "Next.js middleware"; it's proxy in Next 16
docs/roles/frontend-eng.md21Same 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 cast meta.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

See it on GitHub, opens in a new tab