UNPKG

@lucidcms/core

Version:

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

1 lines 605 B
{"version":3,"file":"is-simulated.mjs","names":[],"sources":["../../../src/libs/email/is-simulated.ts"],"sourcesContent":["import type { Config } from \"../../types/config.js\";\nimport type { EmailAdapterInstance } from \"./types.js\";\n\n/** Resolve whether Lucid should skip sending through the configured email adapter. */\nconst isEmailSimulated = (context: {\n\tconfig: Config;\n\temail: EmailAdapterInstance;\n}) => context.config.email.simulate || context.email.key === \"passthrough\";\n\nexport default isEmailSimulated;\n"],"mappings":"AAIA,MAAM,EAAoB,GAGpB,EAAQ,OAAO,MAAM,UAAY,EAAQ,MAAM,MAAQ"}