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.
Properties
Section titled “Properties”allowedOrigins
Section titled “allowedOrigins”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.
breakpoints?
Section titled “breakpoints?”
optionalbreakpoints?: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 Value
Section titled “Default Value”DEFAULT_LIVE_PREVIEW_BREAKPOINTS
collections?
Section titled “collections?”
optionalcollections?: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.
globals?
Section titled “globals?”
optionalglobals?:LivePreviewGlobalMap
Defined in: packages/core/src/livePreview/types.ts:243
Preview settings per global. Mirrors LivePreviewConfigInput.collections.