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) });