Refactor config loading (in progress 3)
This commit is contained in:
14
src/config/common.schema.ts
Normal file
14
src/config/common.schema.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
/**
|
||||
* Common/shared configuration options schema (now includes global options)
|
||||
*/
|
||||
export const CommonConfigSchema = z.object({
|
||||
serviceName: z.string().default('llm-observability-mcp'),
|
||||
serviceVersion: z.string().default('1.0.0'),
|
||||
environment: z.string().default('development'),
|
||||
debug: z.boolean().default(false),
|
||||
logLevel: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
|
||||
});
|
||||
|
||||
export type CommonConfigType = z.infer<typeof CommonConfigSchema>;
|
||||
Reference in New Issue
Block a user