Skip to content

Commit 79ec08c

Browse files
Fix: revert accidental mail.ts changes
Throw an error if Mailgun key is missing instead of warning.
1 parent b12c1c0 commit 79ec08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/mail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import mg from 'nodemailer-mailgun-transport';
33
import { RenderedMailerData } from '../types/email';
44

55
if (!process.env.MAILGUN_KEY) {
6-
console.warn("Mailgun key missing - email features disabled");
6+
throw new Error('Mailgun key missing');
77
}
88

99
const auth = {

0 commit comments

Comments
 (0)