# Environment

```ts
const Environment: object;
```

The environment names envapt detects. The first of [ENVIRONMENT\_KEYS](./ENVIRONMENT_KEYS.mdx) with a value sets the
environment, matched case-insensitively. A missing or unknown name selects `'development'`.

## Type Declaration

| Name | Type | Description |
| ------ | ------ | ------ |
|  `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](https://envapt.materwelon.dev/docs/environment#detecting-the-environment)