From 8f473f0347585588f3b6607851965292137217a0 Mon Sep 17 00:00:00 2001 From: Iaroslav Gryshaiev Date: Thu, 2 Jan 2025 19:21:51 +0100 Subject: [PATCH] fix(user): coerce env var properly --- apps/api/src/user/config/env.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/user/config/env.config.ts b/apps/api/src/user/config/env.config.ts index 258634d18..bb1cc20c1 100644 --- a/apps/api/src/user/config/env.config.ts +++ b/apps/api/src/user/config/env.config.ts @@ -1,5 +1,5 @@ import { z } from "zod"; export const envSchema = z.object({ - STALE_ANONYMOUS_USERS_LIVE_IN_DAYS: z.number().optional().default(90) + STALE_ANONYMOUS_USERS_LIVE_IN_DAYS: z.number({ coerce: true }).optional().default(90) });