@payload-onpage/plugin
v0.6.0
Published
payload-onpage for Payload CMS: on-page editing endpoints, auto-mapping, preview links and admin controls.
Maintainers
Readme
@payload-onpage/plugin
The Payload side: endpoints (enter/mode/exit/preview links/schema), access through Payload's own docAccessOperation, the editor schema, marker hooks, a stale-write guard, and Edit on page / Copy preview link in the admin.


import { onpage } from '@payload-onpage/plugin'
import { nextSession } from '@payload-onpage/next/session'
plugins: [onpage({ collections: ['pages'], globals: ['header'], session: nextSession() })]Options: collections, globals (with per-document fields and url), access, session, encode, previewLinkTTL, validatePreviewLink, secret, authCookie, routePrefix, enabled. See security.
Part of payload-onpage: on-page editing and draft previews for Payload CMS + Next.js. Start with the getting started guide.
MIT licensed.
See the tour and getting started.
Found a bug? Report it or see CONTRIBUTING.md to fix it yourself.
