mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 17:34:52 +10:00
16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { ConfigModule as NestConfigModule } from "@nestjs/config";
|
|
|
|
import { configSchema } from "./schema";
|
|
|
|
@Module({
|
|
imports: [
|
|
NestConfigModule.forRoot({
|
|
isGlobal: true,
|
|
expandVariables: true,
|
|
validate: (config) => configSchema.parse(config),
|
|
}),
|
|
],
|
|
})
|
|
export class ConfigModule {}
|