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) => 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

Properties

app: string

The name of the app

branch?: null | string

The current branch

commit?: null | string

The current commit

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

Type declaration

  • Optional fromLocalStorage?: boolean
  • Optional fromUrlParam?: string | boolean
  • Optional schema?: AnySchema
  • Optional static?: Record<string, any>

    static config values

  • Optional url?: string | string[] | ((environment) => string | string[])
moduleFederation?: {
    manifest?: string | Record<string, string>;
}

Type declaration

  • Optional manifest?: string | Record<string, string>
name?: string

The name of the environment

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

Type declaration

  • Optional load?: boolean | {
        openApiUrl?: string;
    }
origin?: string
production: boolean

The app is compiled from code in the production branch

release?: null | string

The current app release

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

Type declaration

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

Where the service worker is active or not

slug?: {
    name?: string;
}

Type declaration

  • Optional name?: string
tag?: null | string

The current tag

tier?: string
timestamp?: null | string | number

The build timestamp