Skip to Content

EEnvironment

Enum representing different deployment environments.

Defined in: src/shared/enum/environment.enum.ts

Definition

src/shared/enum/environment.enum.ts
/** * Enum representing different deployment environments. */ export enum EEnvironment { DOCKER = "docker", EC2 = "ec2", ECS = "ecs", EKS = "eks", ELASTIC_BEANSTALK = "elastic-beanstalk", HEROKU = "heroku", KUBERNETES = "kubernetes", LOCAL = "local", PRODUCTION = "production", STAGING = "staging", TEST = "test", }

Usage

environment accepts any string — this enum is provided as a convenience to standardize values.

import { CrudConfigService, EEnvironment } from "@elsikora/nestjs-crud-config"; export async function example(config: CrudConfigService) { return await config.get({ section: "app", name: "featureFlag", environment: EEnvironment.PRODUCTION, }); }
Last updated on