Skip to content

Commit

Permalink
feat(Utils): use literals for env checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Jun 21, 2023
1 parent 46f91c4 commit cfa0fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/utils/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const envSchema = z.object({
GITHUB_CLIENT_SECRET: z.string(),

PORT: z.string().max(4),
NODE_ENV: z.string(),
SMEE_URL: z.string().url().optional(),
NODE_ENV: z.literal("production").or(z.literal("development")),

REDIS_DATABASE_URL: z.string().url()
});
Expand Down

0 comments on commit cfa0fc2

Please sign in to comment.