import { Injectable } from '@nestjs/common' import { ConfigService } from '@nestjs/config' @Injectable() export class ConfigurationService { constructor(private readonly configService: ConfigService) {} getKey(key: string): T { return this.configService.get(key, { infer: true }) as T } }