fix: smtp crash due to SMTP_SECURE (#246)

Co-authored-by: charles-gauthereau <charles.gauthereau@soluce-technologies.com>
This commit is contained in:
Charles GTE
2026-04-02 11:07:48 +02:00
committed by GitHub
co-authored by charles-gauthereau
parent e02c5496ae
commit 27e1da6363
6 changed files with 51 additions and 14 deletions
+6 -1
View File
@@ -27,7 +27,12 @@ export const env = createEnv({
SMTP_HOST: z.string().optional(),
SMTP_PORT: z.string().optional(),
SMTP_USER: z.string().optional(),
SMTP_SECURE: z.coerce.boolean().default(true),
SMTP_SECURE: z
.enum(["true", "false"])
.transform((val) => val === "true")
.default("true"),
AUTH_GOOGLE_ID: z.string().optional(),
AUTH_GOOGLE_SECRET: z.string().optional(),