docs(adr): update 002/003/005 with vertical-refactor notes; supersede 004

This commit is contained in:
2026-05-05 09:34:03 +02:00
parent a4d6fa0cb5
commit e5b1ea720e
4 changed files with 20 additions and 0 deletions

View File

@@ -16,3 +16,7 @@ Apps need to access Payload CMS data. Payload 3.x offers both Local API (direct)
- **HTTP mode (fallback):** REST API for external consumers without access to a Payload process.
- Payload instance is injected at app startup, not imported — keeps cms-client standalone.
- Both modes share the same `PayloadClient` interface — consumers don't know which mode is active.
## Status: Superseded by ADR-007 (2026-05-04)
The dual-mode client wrapper was deleted. Feature payload-backed repositories now call `getPayload({ config })` directly with the assembled config injected via constructor. See ADR-007 for rationale.