Skip to content

Commit

Permalink
fix: zod validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Nov 29, 2023
1 parent 95f79a4 commit a01f946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ dotenv.config({
});

const envSchema = z.object({
TWITCH_USERNAME: z.string(),
TWITCH_USERNAME: z.string().min(1),
TWITCH_OAUTH: z.string().startsWith("oauth:"),
TWITCH_ADMIN_USERNAME: z.string(),
DISCORD_TOKEN: z.string(),
TWITCH_ADMIN_USERNAME: z.string().min(1),
DISCORD_TOKEN: z.string().min(1),
});

export const env = envSchema.parse(process.env);

0 comments on commit a01f946

Please sign in to comment.