UNPKG

@nestjs/config

Version:

Configuration for NestJS: load .env files and custom configuration, validate it at startup, and read it through an injectable ConfigService.

8 lines (7 loc) • 185 B
import { PARTIAL_CONFIGURATION_KEY } from '../config.constants.js'; /** * @publicApi */ export function getRegistrationToken(config) { return config[PARTIAL_CONFIGURATION_KEY]; }