Files
stack/apps/gateway/src/config/config.module.ts
Jarvis 04a80fb9ba
Some checks failed
ci/woodpecker/push/ci Pipeline failed
feat(config): add MosaicConfig schema + loader with tier auto-detection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 21:03:00 -05:00

17 lines
356 B
TypeScript

import { Global, Module } from '@nestjs/common';
import { loadConfig, type MosaicConfig } from '@mosaic/config';
export const MOSAIC_CONFIG = 'MOSAIC_CONFIG';
@Global()
@Module({
providers: [
{
provide: MOSAIC_CONFIG,
useFactory: (): MosaicConfig => loadConfig(),
},
],
exports: [MOSAIC_CONFIG],
})
export class ConfigModule {}