Compare commits

..

2 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
b18bc21ada fix(ci): downgrade strict @mintel tag check to warning
Some checks failed
Build & Deploy / 🧪 QA (push) Failing after 1m12s
Build & Deploy / 🔍 Prepare (push) Successful in 12s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-10 13:08:32 +02:00
3 changed files with 9 additions and 7 deletions

View File

@@ -135,12 +135,13 @@ jobs:
UPSTREAM_SHA=$(git ls-remote --tags https://git.infra.mintel.me/mmintel/at-mintel.git "$TAG_TO_WAIT" | grep "$TAG_TO_WAIT" | tail -n1 | awk '{print $1}')
if [[ -z "$UPSTREAM_SHA" ]]; then
echo "❌ Error: Tag $TAG_TO_WAIT not found in mmintel/at-mintel."
echo "⚠️ Warning: Tag $TAG_TO_WAIT not found in mmintel/at-mintel."
echo " The deployment will proceed, but ensure that the matching images are available."
echo "Full @mintel dependencies in package.json:"
grep "@mintel/" package.json
exit 1
else
echo "✅ Tag verified: Found upstream SHA $UPSTREAM_SHA for $TAG_TO_WAIT"
fi
echo "✅ Tag verified: Found upstream SHA $UPSTREAM_SHA for $TAG_TO_WAIT"
# 2. Status Check (Requires GITEA_PAT for cross-repo API access)
POLL_TOKEN="${{ secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}"

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.12",
"version": "2.3.14",
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",