# Interface Environment

interface Environment {
app: string;
branch?: null | string;
commit?: null | string;
config?:
| string
| {
fromLocalStorage?: boolean;
fromUrlParam?: string
| boolean;
schema?: AnySchema;
static?: Record<string, any>;
url?: string | string[] | (environment: Environment) => string | string[];
};
moduleFederation?: { manifest?: string
| Record<string, string> };
name?: string;
openApi?: { load?: boolean | { openApiUrl?: string } };
origin?: string;
production: boolean;
release?: null | string;
sentry?: {
debug?: boolean;
dsn?: string;
enabled?: boolean;
integrations?: {
BrowserTracing?: { tracePropagationTargets?: string[] };
httpClient?: {
failedRequestStatusCodes?: (number | [number, number])[];
failedRequestTargets?: (string | RegExp)[];
};
};
};
serviceWorker?: boolean;
slug?: { name?: string };
tag?: null | string;
tier?: string;
timestamp?: null | string | number;
[key: string]: any;
}

#### Indexable

- [key: string]: any

- Defined in environment.ts:3

#####
Index

### Properties

app
branch?
commit?
config?
moduleFederation?
name?
openApi?
origin?
production
release?
sentry?
serviceWorker?
slug?
tag?
tier?
timestamp?

##
Properties

### app

app: string

The name of the app

- Defined in environment.ts:7

### `Optional` branch

branch?: null | string

The current branch

- Defined in environment.ts:35

### `Optional` commit

commit?: null | string

The current commit

- Defined in environment.ts:27

### `Optional` config

config?:
| string
| {
fromLocalStorage?: boolean;
fromUrlParam?: string
| boolean;
schema?: AnySchema;
static?: Record<string, any>;
url?: string | string[] | (environment: Environment) => string | string[];
}

#### Type declaration

- string
- {
  fromLocalStorage?: boolean;
  fromUrlParam?: string | boolean;
  schema?: AnySchema;
  static?: Record<string, any>;
  url?: string | string[] | (environment: Environment) => string | string[];
  }

  - ##### `Optional` fromLocalStorage?: boolean

  - ##### `Optional` fromUrlParam?: string | boolean

  - ##### `Optional` schema?: AnySchema

  - ##### `Optional` static?: Record<string, any>

    static config values

  - ##### `Optional` url?: string | string[] | (environment: Environment) => string | string[]

- Defined in environment.ts:66

### `Optional` moduleFederation

moduleFederation?: { manifest?: string | Record<string, string> }

- Defined in environment.ts:47

### `Optional` name

name?: string

The name of the environment

- Defined in environment.ts:11

### `Optional` openApi

openApi?: { load?: boolean | { openApiUrl?: string } }

- Defined in environment.ts:79

### `Optional` origin

origin?: string

- Defined in environment.ts:77

### production

production: boolean

The app is compiled from code in the production branch

- Defined in environment.ts:15

### `Optional` release

release?: null | string

The current app release

- Defined in environment.ts:23

### `Optional` sentry

sentry?: {
debug?: boolean;
dsn?: string;
enabled?: boolean;
integrations?: {
BrowserTracing?: { tracePropagationTargets?: string[] };
httpClient?: {
failedRequestStatusCodes?: (number | [number, number])[];
failedRequestTargets?: (string | RegExp)[];
};
};
}

- Defined in environment.ts:51

### `Optional` serviceWorker

serviceWorker?: boolean

Where the service worker is active or not

- Defined in environment.ts:19

### `Optional` slug

slug?: { name?: string }

- Defined in environment.ts:43

### `Optional` tag

tag?: null | string

The current tag

- Defined in environment.ts:39

### `Optional` tier

tier?: string

- Defined in environment.ts:41

### `Optional` timestamp

timestamp?: null | string | number

The build timestamp

- Defined in environment.ts:31