@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 548 B
JavaScript
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.email?.adapter?await(typeof r.email.adapter==`function`?await r.email.adapter():r.email.adapter):await n()}catch(r){return t.error({error:r,event:`email-adapter.initialization.failed`,scope:e.logScopes.emailAdapter,message:`Failed to initialize email adapter`,data:{errorMessage:r instanceof Error?r.message:String(r)}}),await n()}};export{r as default};
//# sourceMappingURL=get-adapter.mjs.map