Skip to content

LivePreviewConfigInput

Defined in: packages/core/src/livePreview/types.ts:220

User-facing input for the root-level livePreview config block — sibling to admin / access / routes on VexClientConfigInput.

allowedOrigins: string[]

Defined in: packages/core/src/livePreview/types.ts:228

Origins permitted to send postMessage control frames to a live-preview listener — e.g. ["http://localhost:3000", "https://admin.example.com"]. Explicitly configured rather than inferred. Empty (the default) means the postMessage transport accepts nothing — BroadcastChannel is unaffected, since it cannot cross origins at all.


optional breakpoints?: LivePreviewBreakpoint[]

Defined in: packages/core/src/livePreview/types.ts:235

Breakpoints offered as toggle buttons in every collection/global’s preview panel and the floating indicator’s pop-out controls, unless a collection/global overrides them via its own admin.livePreview.breakpoints.

DEFAULT_LIVE_PREVIEW_BREAKPOINTS


optional collections?: LivePreviewCollectionMap

Defined in: packages/core/src/livePreview/types.ts:241

Preview settings per collection, as an alternative to declaring them on each defineCollection({ admin: { livePreview } }). A collection’s own block wins field by field over its entry here — see resolveLivePreviewSettings.


optional globals?: LivePreviewGlobalMap

Defined in: packages/core/src/livePreview/types.ts:243

Preview settings per global. Mirrors LivePreviewConfigInput.collections.