Fix error when compiling ormconfig

This commit is contained in:
Dragory 2022-06-26 15:02:34 +03:00
parent e760654c54
commit 6b44027eb4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 19 additions and 30 deletions

View file

@ -7,9 +7,9 @@ import { z } from "zod";
const envType = z.object({
KEY: z.string().length(32),
CLIENT_ID: z.string(),
CLIENT_SECRET: z.string(),
BOT_TOKEN: z.string(),
CLIENT_ID: z.string().min(16),
CLIENT_SECRET: z.string().length(32),
BOT_TOKEN: z.string().min(50),
OAUTH_CALLBACK_URL: z.string().url(),
DASHBOARD_DOMAIN: z.string(),