UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 495 B
import e from"../../constants/constants.mjs";import t from"../logger/index.mjs";const n=async n=>{try{return n.media.adapter?await(typeof n.media.adapter==`function`?await n.media.adapter():n.media.adapter):null}catch(n){return t.error({error:n,event:`media-adapter.initialization.failed`,scope:e.logScopes.mediaAdapter,message:`Failed to initialize media adapter`,data:{errorMessage:n instanceof Error?n.message:String(n)}}),null}};export{n as default}; //# sourceMappingURL=get-adapter.mjs.map