@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
53 lines • 2.15 kB
TypeScript
export declare const isDevMode: boolean;
export declare const isServerMode: boolean;
export declare enum EnvName {
DEVELOPMENT = "development",
TEST = "test",
TEST_CI = "test_ci",
STAGING = "staging",
CANARY = "canary",
PRODUCTION = "production"
}
export declare class Config {
static grab: (key: string, defaultValue?: any) => any;
static get ENV(): any;
static get NODE_ENV(): any;
static get BASE_PATH(): string;
static get LOCATION(): string;
static getBasePath(extendedPath?: string): string;
static get BASE_URL(): string;
static get PORT(): string | 4000;
static get DB_URI(): string;
static get DB_NAME(): string;
static get CLI_MODE(): string;
static get SERVER_TYPE(): "default" | "hobby";
static get DEFAULT_DX_SERVER_URL(): string;
static get DX_SITE_URL(): string;
static get DX_SITE_BACKUP_URL(): string;
static get DX_API_BASE_URL(): string;
static get DX_API_BASE_PATH(): string;
static get DX_API_URL(): string;
static get BUILDER(): string;
/**
* Share resource credentials to workspaces?
* - If TRUE -> Everyone can read the cloud resource's credentials (such as secrets, service accounts, api access token,...)
* - If FALSE -> Only the server can read cloud resource's credentials, others (CLI & API) won't, even Workspace Administrators or Moderators.
* @default false
*/
static get SHARE_RESOURCE_CREDENTIAL(): boolean;
static get DISABLE_INPECT_MEMORY(): boolean;
static get SECONDS_INPECT_MEMORY(): number;
static get REDIS_HOST(): string;
static get REDIS_PORT(): number;
static get REDIS_PASSWORD(): string;
static get CORS_WHITELIST(): string[];
}
export declare const IsDev: () => boolean;
export declare const IsTest: () => boolean;
export declare const IsTestCI: () => boolean;
export declare const IsStag: () => boolean;
export declare const IsProd: () => boolean;
export declare const IsCanary: () => boolean;
export declare const superAccounts: string[];
export declare const IsSuperAccount: (slug: string) => boolean;
//# sourceMappingURL=app.config.d.ts.map