v9.1.0
envaptVariables

Environment

const Environment: object;

The environment names envapt detects. The first of ENVIRONMENT_KEYS with a value sets the environment, matched case-insensitively. A missing or unknown name selects 'development'.

Type Declaration

NameTypeDescription
Development"development"The default when no environment variable is set, or when the first one set holds an unknown name.
Production"production"Selected by the value production.
Staging"staging"Selected by the value staging.
Test"test"Selected by the value test.

See

https://envapt.materwelon.dev/docs/environment#detecting-the-environment

On this page