diff --git a/packages/api/src/@core/environment/environment.module.ts b/packages/api/src/@core/environment/environment.module.ts index 290e4b7d1..d17150d0a 100644 --- a/packages/api/src/@core/environment/environment.module.ts +++ b/packages/api/src/@core/environment/environment.module.ts @@ -2,6 +2,7 @@ import { Global, Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import { EnvironmentService } from './environment.service'; +import { validate } from './environement.validation'; @Global() @Module({ @@ -9,6 +10,7 @@ import { EnvironmentService } from './environment.service'; ConfigModule.forRoot({ isGlobal: true, expandVariables: true, + validate, }), ], providers: [EnvironmentService],