Compare commits

..

1 Commits

Author SHA1 Message Date
13be6544ab fix(contact): import env instead of undefined config
Some checks failed
Build & Deploy / 🔍 Prepare (push) Failing after 27s
Build & Deploy / 🧪 QA (push) Has started running
Build & Deploy / 🏗️ Build (push) Has been cancelled
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
2026-04-10 13:13:47 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import { sendEmail } from '@/lib/mail/mailer';
import { render, ContactFormNotification, ConfirmationMessage } from '@mintel/mail';
import React from 'react';
import { getServerAppServices } from '@/lib/services/create-services.server';
import { env } from '@/lib/env';
export async function sendContactFormAction(formData: FormData) {
const services = getServerAppServices();
@@ -95,7 +96,7 @@ export async function sendContactFormAction(formData: FormData) {
);
if (!isTestSubmission) {
logger.info('Sending internal notification', { recipients: config.mail.recipients });
logger.info('Sending internal notification', { recipients: env.MAIL_RECIPIENTS });
const notificationResult = await sendEmail({
replyTo: email,
subject: notificationSubject,
@@ -110,14 +111,14 @@ export async function sendContactFormAction(formData: FormData) {
logger.error('Notification email DELIVERY FAILED', {
error: notificationResult.error,
subject: notificationSubject,
recipients: config.mail.recipients,
recipients: env.MAIL_RECIPIENTS,
});
services.errors.captureException(
new Error(`Notification email failed: ${notificationResult.error}`),
{
action: 'sendContactFormAction_notification',
email,
recipients: config.mail.recipients
recipients: env.MAIL_RECIPIENTS
},
);
}

View File

@@ -160,7 +160,7 @@
"prepare": "husky",
"preinstall": "npx only-allow pnpm"
},
"version": "2.3.13",
"version": "2.3.14",
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",