Issue 120
tech-debt: Move to a Payload-supported Next.js version (16.3.x) after #109
Back to our planDone
dependenciescmstech-debtpriority: high
Type
tech-debt
Problem
#109 moves production to Next 15.5.28 with Payload 3.91.0. Payload 3.91 declares its Next peer range as >=15.2.9 <15.3.0 || >=15.3.9 <15.4.0 || >=15.4.11 <15.5.0 || >=16.3.3 <17.0.0 (npm view @payloadcms/next@3.91.0 peerDependencies), so 15.5.x is outside the supported range. It installs only because the repo uses legacy-peer-deps.
15.5.28 was chosen for security, not convenience. npm audit on a lockfile with just next showed:
| Next version | In Payload 3.91's range | Advisories on next |
|---|---|---|
| 15.4.11 (newest supported 15.x) | yes | 28, including critical |
| 15.5.28 (#109) | no | none |
| 16.3.8 | yes | none |
So the unsupported pairing should be time-bounded: the supported, patched target is Next 16.3.x. Found in the external review of the PRs (2026-10-19).
Proposed fix
- Upgrade
nextandeslint-config-nextto the latest 16.3.x (≥ 16.3.3), keeping Payload on a version whose peer range includes it. - Work through the Next 16 upgrade notes (async request APIs, config changes, React version) and any Payload 3.x notes for Next 16.
- Run typecheck, lint, build,
npm audit --omit=dev --audit-level=high, and the #109 smoke tests (public pages, admin login/edit/save, contact form, media upload variants, sitemaps).
Acceptance criteria
- Not done:
nextsatisfies Payload's declared peer range (nolegacy-peer-depsoverride needed fornext). - Not done: All required checks green; production audit has no high or critical findings.
- Not done: Post-deploy smoke tests recorded on this issue.
- Not done: Done within 30 days of #109 merging, or this issue records why not and the new date.
Area
dependencies, cms
Priority
priority: high
Generated by Claude Code, opens in a new tab