@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 522 B
JavaScript
import{copy as e}from"../../../libs/i18n/copy.mjs";import t from"../../../constants/constants.mjs";const n=e=>e===`revision`||e===t.collectionBuilder.publishing.snapshotVersionType,r=async t=>t.mode===`perspective`&&n(t.versionType)?{error:{type:`basic`,message:e(`server:core.documents.preview.mode.unsupported.message`),status:400},data:void 0}:{error:void 0,data:t.mode??(n(t.versionType)?`scoped`:`perspective`)};export{r as default,n as requiresPinnedPreviewVersion};
//# sourceMappingURL=resolve-preview-mode.mjs.map