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

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: Environment) => string | string[];
    }

Type declaration

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

      static config values

    • Optionalurl?: string | string[] | (environment: Environment) => string | string[]
moduleFederation?: { manifest?: string | Record<string, string> }
name?: string

The name of the environment

openApi?: { 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)[];
        };
    };
}
serviceWorker?: boolean

Where the service worker is active or not

slug?: { name?: string }
tag?: null | string

The current tag

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

The build timestamp