From b63d00392e15900442e3c089e47caf88c6d24842 Mon Sep 17 00:00:00 2001 From: Heath Hopkins Date: Mon, 20 Oct 2025 11:37:06 -0400 Subject: [PATCH] Allow alerts to be created if ALERT_SMTP_HOST is defined The previous behavior only allowed email alerts in self-hosting if ALERT_RESEND_API_KEY was defined. This commit updates the environment check to also use ALERT_SMTP_HOST for alert email configuration. The ALERT_SMTP_HOST is already used in the SMPT client, so no other changes are necessary. --- .../route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts.new/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts.new/route.tsx index e408d82aa5..1cc1a15c17 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts.new/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts.new/route.tsx @@ -158,7 +158,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) { const option = url.searchParams.get("option"); const emailAlertsEnabled = - env.ALERT_FROM_EMAIL !== undefined && env.ALERT_RESEND_API_KEY !== undefined; + env.ALERT_FROM_EMAIL !== undefined && (env.ALERT_RESEND_API_KEY !== undefined || env.ALERT_SMTP_HOST !== undefined); return typedjson({ ...results,