We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2186c0b + 31c68cf commit 5999ed7Copy full SHA for 5999ed7
src/schemas/env.schema.ts
@@ -16,8 +16,8 @@ export const $BaseEnv = z.object({
16
DEBUG: $BooleanLike.optional(),
17
/** enable log-level logs (default = true in development or production, false in tests) */
18
LOG: $BooleanLike.optional(),
19
- LOGIN_REQUEST_TROTTLER_LIMIT: z.number().int().optional(),
20
- LOGIN_REQUEST_TROTTLER_TTL: z.number().int().optional(),
+ LOGIN_REQUEST_TROTTLER_LIMIT: $NumberLike.pipe(z.number().int().positive()).optional(),
+ LOGIN_REQUEST_TROTTLER_TTL: $NumberLike.pipe(z.number().int().positive()).optional(),
21
MONGO_DIRECT_CONNECTION: $BooleanLike.optional(),
22
MONGO_REPLICA_SET: z.enum(['rs0']).optional(),
23
MONGO_RETRY_WRITES: $BooleanLike.optional(),
0 commit comments