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 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-02-28 21:46:01 +00:00
committed by GitHub
parent b5170f2d33
commit 002ecb8fb6
@@ -140,6 +140,21 @@ export const settings: Record<string, Setting[]> = {
!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.',