Interface ConfigLoadOptions

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

Properties

fromCid?: string

Load additional configuration directly from the given Content Identifier (CID). This takes precedence over fromDns if both are provided.

fromDns?: string | boolean

Load additional configuration based on a CID found in a DNS TXT record. If true, uses location.hostname. If a string, uses that domain.

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

static config values

url?: string | string[] | (environment: Environment) => string | string[]