src/lib/environment.ts
Properties |
[key: string]:
|
|
Defined in src/lib/environment.ts:83
|
| app |
app:
|
Type : string
|
|
The name of the app |
| branch |
branch:
|
Type : string | null
|
| Optional |
|
The current branch |
| commit |
commit:
|
Type : string | null
|
| Optional |
|
The current commit |
| config |
config:
|
Type : string | literal type
|
| Optional |
| moduleFederation |
moduleFederation:
|
Type : literal type
|
| Optional |
| name |
name:
|
Type : string
|
| Optional |
|
The name of the environment |
| openApi |
openApi:
|
Type : literal type
|
| Optional |
| origin |
origin:
|
Type : string
|
| Optional |
| production |
production:
|
Type : boolean
|
|
The app is compiled from code in the production branch |
| release |
release:
|
Type : string | null
|
| Optional |
|
The current app release |
| sentry |
sentry:
|
Type : literal type
|
| Optional |
| serviceWorker |
serviceWorker:
|
Type : boolean
|
| Optional |
|
Where the service worker is active or not |
| slug |
slug:
|
Type : literal type
|
| Optional |
| tag |
tag:
|
Type : string | null
|
| Optional |
|
The current tag |
| tier |
tier:
|
Type : string
|
| Optional |
| timestamp |
timestamp:
|
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;
}