@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 314 B
JavaScript
const e=(e,t)=>{if(e.email.from?.email&&e.email.from?.name)return{email:e.email.from.email,name:e.email.from.name};if(t)try{return{email:`noreply@${new URL(t).hostname}`,name:`Lucid CMS`}}catch{}return{email:`noreply@example.com`,name:`Lucid CMS`}};export{e as default};
//# sourceMappingURL=get-email-from.mjs.map