From 62d2cf80cadc438bcffe071d07c71226f58abaac Mon Sep 17 00:00:00 2001 From: Agustin Ranieri Date: Sun, 7 Jul 2024 02:39:12 -0300 Subject: [PATCH] Zod coerce option --- src/environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environment.ts b/src/environment.ts index 0049f7c..f9e3a60 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -7,7 +7,7 @@ const schema = z.object({ WEBHOOK_URL: z.string(), CACHE_KEY: z.string(), CACHE_URL: z.string().optional(), - PORT: z.number({ coerce: true }).lte(65535).default(3000), + PORT: z.coerce.number().lte(65535).default(3000), }); const env = schema.parse(Bun.env);