# IHostEnvironment

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.2.0`
- Kind: `interface`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface IHostEnvironment {
  isDevelopment(): boolean;
  isEnvironment(environmentName: string): boolean;
  isProduction(): boolean;
  isStaging(): boolean;
}
```

## Methods

- [isDevelopment](/reference/api/typescript/aspire.hosting/ihostenvironment/isdevelopment.md) -- `method` -- Checks if running in Development environment
    ```typescript
  isDevelopment(): boolean
  ```
- [isEnvironment](/reference/api/typescript/aspire.hosting/ihostenvironment/isenvironment.md) -- `method` -- Checks if the environment matches the specified name
    ```typescript
  isEnvironment(environmentName: string): boolean
  ```
- [isProduction](/reference/api/typescript/aspire.hosting/ihostenvironment/isproduction.md) -- `method` -- Checks if running in Production environment
    ```typescript
  isProduction(): boolean
  ```
- [isStaging](/reference/api/typescript/aspire.hosting/ihostenvironment/isstaging.md) -- `method` -- Checks if running in Staging environment
    ```typescript
  isStaging(): boolean
  ```
