Skip to content

Commit

Permalink
fix: coerce boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Mar 27, 2024
1 parent 88147d9 commit 9465cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const envSchema = z.object({
LOKI_URL: z.string().url().trim(),
TOKEN_CACHE_MS: z.coerce.number().optional().default(1_000 * 60 * 5),
SERVER_PORT: z.coerce.number().optional().default(0),
SERVER_SSL_ENABLED: z.boolean().optional().default(false),
SERVER_SSL_ENABLED: z.coerce.boolean().optional().default(false),
SERVER_SSL_CERT: z.string().optional(),
SERVER_SSL_KEY: z.string().optional(),
TRUST_PROXY: z.boolean().optional().default(false)
TRUST_PROXY: z.coerce.boolean().optional().default(false)
});

export type ENV = z.infer<typeof envSchema>;
Expand Down

0 comments on commit 9465cc8

Please sign in to comment.