Skip to content

Commit ad935db

Browse files
committed
chore: merge
2 parents 4205337 + 287c9e1 commit ad935db

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • interapp-backend/api/email_handler

interapp-backend/api/email_handler/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ import { Transporter, createTransport } from 'nodemailer';
22
import aws, { SES } from '@aws-sdk/client-ses';
33
import hbs from 'nodemailer-express-handlebars';
44

5-
65
// verify env integrity
76
if (process.env.NODE_ENV === 'production') {
8-
if (!process.env.SES_ACCESS_KEY_ID || !process.env.SES_SECRET_ACCESS_KEY || !process.env.EMAIL_USER) {
7+
if (
8+
!process.env.SES_ACCESS_KEY_ID ||
9+
!process.env.SES_SECRET_ACCESS_KEY ||
10+
!process.env.EMAIL_USER
11+
) {
912
console.error('Missing SES_ACCESS_KEY_ID or SES_SECRET_ACCESS_KEY');
1013
process.exit(1);
1114
}

0 commit comments

Comments
 (0)