Remove unnecessary description and whitespace from nexumi.mdc file
This commit is contained in:
17
apps/bot/src/env.ts
Normal file
17
apps/bot/src/env.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { config } from 'dotenv';
|
||||
import { z } from 'zod';
|
||||
|
||||
config();
|
||||
|
||||
const EnvSchema = z.object({
|
||||
NODE_ENV: z.enum(['development', 'test', 'production']).default('development'),
|
||||
BOT_TOKEN: z.string().min(1),
|
||||
BOT_CLIENT_ID: z.string().min(1),
|
||||
DATABASE_URL: z.string().url(),
|
||||
REDIS_URL: z.string().url(),
|
||||
LOG_LEVEL: z.string().default('info'),
|
||||
DEFAULT_LOCALE: z.enum(['de', 'en']).default('de'),
|
||||
BACKUP_RETENTION_DAYS: z.coerce.number().int().positive().default(14)
|
||||
});
|
||||
|
||||
export const env = EnvSchema.parse(process.env);
|
||||
Reference in New Issue
Block a user