diff --git a/functions/src/mail/mail_service.ts b/functions/src/mail/mail_service.ts index f6695c35..260a2b76 100644 --- a/functions/src/mail/mail_service.ts +++ b/functions/src/mail/mail_service.ts @@ -6,6 +6,7 @@ require('dotenv').config(); // Fetch AWS credentials securely from Firebase configuration const AWS_ACCESS_KEY_ID = process.env.AWS_ACCESS_KEY_ID; const AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY; +const REGION = "ap-south-1"; console.log("AWS_ACCESS_KEY_ID:", AWS_ACCESS_KEY_ID); console.log("AWS_SECRET_ACCESS_KEY:", AWS_SECRET_ACCESS_KEY); @@ -14,8 +15,6 @@ if (!AWS_ACCESS_KEY_ID || !AWS_SECRET_ACCESS_KEY) { throw new Error('AWS credentials are not set in environment variables'); } -const REGION = "ap-south-1"; - const sesClient = new SESClient({ credentials: { accessKeyId: AWS_ACCESS_KEY_ID,