From 002ecb8fb6fdea4085f2e1547646f68e3cb8dd21 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 28 Feb 2026 21:46:01 +0000 Subject: [PATCH] fix: restore email domain (MX) setting in instance settings UI (#8152) The email_domain setting was accidentally removed from the frontend instance settings in a recent onboarding cleanup. The backend still fully supports it. This restores the setting in the Core section. Co-authored-by: Claude Opus 4.6 --- frontend/src/lib/components/instanceSettings.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frontend/src/lib/components/instanceSettings.ts b/frontend/src/lib/components/instanceSettings.ts index 9e67ff585c..2b59f64f75 100644 --- a/frontend/src/lib/components/instanceSettings.ts +++ b/frontend/src/lib/components/instanceSettings.ts @@ -140,6 +140,21 @@ export const settings: Record = { !value?.endsWith('/') && !value?.endsWith(' ')) }, + { + label: 'Email domain', + description: 'Domain to display in webhooks for email triggers (should match the MX record)', + key: 'email_domain', + fieldType: 'text', + placeholder: 'mail.windmill.com', + storage: 'setting', + error: 'Must be a valid domain', + isValid: (value: string | undefined) => + value == undefined || + value === '' || + /^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)*$/.test( + value + ) + }, { label: 'Request size limit in MB', description: 'Maximum size of HTTP requests in MB.',