The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
server-only stuff is exported from /, client-only stuff from /client, and shared stuff from both. This was the best way to avoid duplication within the same environment (server/client).
BREAKING: a bunch of exports have been moved around. There are now two of them: @payloadcms/richtext-lexical and @payloadcms/richtext-lexical/client. The root export is server-only. If any imports don't resolve anymore after this version, simply change the import to one of those, depending on if you are on the server or the client
server-only stuff is exported from /, client-only stuff from /client, and shared stuff from both. This was the best way to avoid duplication within the same environment (server/client).
BREAKING: a bunch of exports have been moved around. There are now two of them:
@payloadcms/richtext-lexical
and@payloadcms/richtext-lexical/client
. The root export is server-only. If any imports don't resolve anymore after this version, simply change the import to one of those, depending on if you are on the server or the client