mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
fix smtp form edge case
This commit is contained in:
1 parent
715734b737
commit
5da180dd29
1 file changed
+8
-2
@@ -77,8 +77,14 @@ const smtpDisabledSchema = z.object({
|
||||
SMTP_ADMIN_EMAIL: z.string().optional(),
|
||||
SMTP_SENDER_NAME: z.string().optional(),
|
||||
SMTP_HOST: z.string().optional(),
|
||||
SMTP_PORT: z.number().optional(),
|
||||
SMTP_MAX_FREQUENCY: z.number().optional(),
|
||||
SMTP_PORT: z.preprocess(
|
||||
(val) => (val === '' || val == null ? undefined : val),
|
||||
z.coerce.number().optional()
|
||||
),
|
||||
SMTP_MAX_FREQUENCY: z.preprocess(
|
||||
(val) => (val === '' || val == null ? undefined : val),
|
||||
z.coerce.number().optional()
|
||||
),
|
||||
SMTP_USER: z.string().optional(),
|
||||
SMTP_PASS: z.string().optional(),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user