From aba4596edd8cf381fde5bf5862195f1a2cbf83a3 Mon Sep 17 00:00:00 2001 From: Danel Kungla Date: Thu, 7 Aug 2025 18:04:44 +0300 Subject: [PATCH] fix: update email recipient logic in renderCompanyOfferEmail function --- .env.development | 2 +- packages/email-templates/src/emails/company-offer.email.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 80637fc..962cb9d 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ # These values are only used when running the app in development mode. # SITE -NEXT_PUBLIC_SITE_URL=https://localhost:3000 +NEXT_PUBLIC_SITE_URL=http://localhost:3000 # SUPABASE DEVELOPMENT diff --git a/packages/email-templates/src/emails/company-offer.email.tsx b/packages/email-templates/src/emails/company-offer.email.tsx index fa9f30f..f13308c 100644 --- a/packages/email-templates/src/emails/company-offer.email.tsx +++ b/packages/email-templates/src/emails/company-offer.email.tsx @@ -34,7 +34,7 @@ export async function renderCompanyOfferEmail({ namespace, }); - const to = process.env.CONTACT_EMAIL || ''; + const to = companyData.email || ''; const previewText = t(`${namespace}:previewText`, { companyName: companyData.companyName,