File

src/lib/environment.ts

Index

Properties

Indexable

[key: string]: any

Properties

app
app: string
Type : string

The name of the app

branch
branch: string | null
Type : string | null
Optional

The current branch

commit
commit: string | null
Type : string | null
Optional

The current commit

config
config: string | literal type
Type : string | literal type
Optional
moduleFederation
moduleFederation: literal type
Type : literal type
Optional
name
name: string
Type : string
Optional

The name of the environment

openApi
openApi: literal type
Type : literal type
Optional
origin
origin: string
Type : string
Optional
production
production: boolean
Type : boolean

The app is compiled from code in the production branch

release
release: string | null
Type : string | null
Optional

The current app release

sentry
sentry: literal type
Type : literal type
Optional
serviceWorker
serviceWorker: boolean
Type : boolean
Optional

Where the service worker is active or not

slug
slug: literal type
Type : literal type
Optional
tag
tag: string | null
Type : string | null
Optional

The current tag

tier
tier: string
Type : string
Optional
timestamp
timestamp: string | number | null
Type : string | number | null
Optional

The build timestamp

export type AnySchema = { validateAsync: (...args: any[]) => any };

export interface Environment {
  /**
   * The name of the app
   */
  app: string;
  /**
   * The name of the environment
   */
  name?: string;
  /**
   * The app is compiled from code in the production branch
   */
  production: boolean;
  /**
   * Where the service worker is active or not
   */
  serviceWorker?: boolean;
  /**
   * The current app release
   */
  release?: string | null;
  /**
   * The current commit
   */
  commit?: string | null;
  /**
   * The build timestamp
   */
  timestamp?: string | number | null;
  /**
   * The current branch
   */
  branch?: string | null;
  /**
   * The current tag
   */
  tag?: string | null;

  tier?: string;

  slug?: {
    name?: string;
  };

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

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

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

  origin?: string;

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

  [key: string]: any;
}

results matching ""

    No results matching ""