Skip to content

globalLivePreviewUrl

globalLivePreviewUrl<TGlobalSlug>(slug, resolve): LivePreviewServerUrl

Defined in: packages/core/src/livePreview/urlHelpers.ts:60

livePreviewUrl for a global.

TGlobalSlug extends string

TGlobalSlug

The owning global’s slug, used only to infer the document type.

(props) => string | Promise<string | undefined> | undefined

The resolver, checked against that global’s real document.

LivePreviewServerUrl

The { server } wrapper, re-typed to the loose public url form.

livePreviewUrl