|
|
@ -37,6 +37,8 @@ export class ConfigService { |
|
|
private validateInput(envConfig: any): EnvConfig { |
|
|
private validateInput(envConfig: any): EnvConfig { |
|
|
const result = schema.safeParse(envConfig); |
|
|
const result = schema.safeParse(envConfig); |
|
|
|
|
|
|
|
|
|
|
|
console.log(result); |
|
|
|
|
|
|
|
|
if (result.success === false) { |
|
|
if (result.success === false) { |
|
|
throw new Error(`Config validation error: ${result.error.toString()}`); |
|
|
throw new Error(`Config validation error: ${result.error.toString()}`); |
|
|
} |
|
|
} |
|
|
|