UNPKG

@lucidcms/core

Version:

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

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