feat(config): add MosaicConfig schema + loader with tier auto-detection
ci/woodpecker/push/ci Pipeline failed

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-04-02 21:03:00 -05:00
co-authored by Claude Opus 4.6
parent 626adac363
commit 04a80fb9ba
12 changed files with 270 additions and 16 deletions
+16
View File
@@ -0,0 +1,16 @@
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 {}