You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two divergent getPayload entries existed: src/lib/getPayload.ts (thin, raw
Payload Local API) and src/plugins/payload-runtime/getPayload.ts (194 lines: a
deepUuidWrap Proxy + initializePlatformBackends). The Proxy was a no-op
(deepUuidWrap returns its input unchanged) and the platform-backend singletons
(getCacheBackend/getStorageBackend/getImageTransformer) are read only by unit
tests, so the two entries were behaviorally identical for every runtime path.
- Migrate the 10 payload-runtime/getPayload importers (+ the jest.mock path) onto
@root/lib/getPayload; drop the no-op Proxy and the dead backend bootstrap.
- The two deploymentTarget copies differed only in formatting / relative-import
depth; migrate the 2 payload-runtime/deploymentTarget importers onto
@root/lib/deploymentTarget.
- Remove the now-empty src/plugins/payload-runtime/ directory.
- Note in lib/cache + lib/storage that the backend init is no longer auto-invoked.
Verified: tsc 0; dev server boots and serves home/admin/post (200, seeded
content). Tests not run — jest config is broken under ESM (pre-existing, tracked
separately).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments