diff --git a/apps/web/lib/emails/templates/_base-email.ts b/apps/web/lib/emails/templates/_base-email.ts index 2e73025d..3cd5b44e 100644 --- a/apps/web/lib/emails/templates/_base-email.ts +++ b/apps/web/lib/emails/templates/_base-email.ts @@ -10,6 +10,7 @@ export default class BaseEmail { return {}; } public sendEmail() { + if (process.env.NEXT_PUBLIC_IS_E2E) return new Promise((r) => r("Skipped sendEmail for E2E")); new Promise((resolve, reject) => nodemailer .createTransport(this.getMailerOptions().transport)