Skip to content

Commit 63f0c45

Browse files
authored
SMTP_PORT env var has to be coerced to a number
1 parent 242928f commit 63f0c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/env.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const EnvironmentSchema = z.object({
2828
FROM_EMAIL: z.string().optional(),
2929
REPLY_TO_EMAIL: z.string().optional(),
3030
SMTP_HOST: z.string().optional(),
31-
SMTP_PORT: z.number().optional(),
31+
SMTP_PORT: z.coerce.number().optional(),
3232
SMTP_USER: z.string().optional(),
3333
SMTP_PASSWORD: z.string().optional(),
3434
PLAIN_API_KEY: z.string().optional(),

0 commit comments

Comments
 (0)