Home Reference Source Repository

Variable

Static Public Summary
public

Gives the base configuration.

public

Exports the default roc.config.js.

public

Exports the roc.config.meta.js.

public

Gives the meta configuration.

public

Universal Configuration Manager

Static Public

public baseConfig: object: * source

import {baseConfig} from 'roc-web-react/lib/helpers/config.js'

Gives the base configuration.

Return:

object

Returns the base configuration

public config: object: * source

Exports the default roc.config.js.

Return:

object

The default roc.config.js.

public configMeta: object: * source

Exports the roc.config.meta.js.

Return:

object

The roc.config.meta.js.

public metaConfig: object: * source

import {metaConfig} from 'roc-web-react/lib/helpers/config.js'

Gives the meta configuration.

Return:

object

Returns the meta configuration

public universalConfig: * source

Universal Configuration Manager

Manages both application configuration and Roc configuration. On the server the configurations will be fetched directly and on the client it's expected that the configuration is available on window as ROC_CONFIG and APP_CONFIG.

appConfig will only contain what has been selected by runtime.configWhitelistProperty. That means if you want to read the full configuration on the server you will need to read it directly from node-config.