node/appConfiguration

Classes

AppConfiguration

Members

(inner, constant) appConfiguration :ProviderCreator.<AppConfigurationProviderOptions>

Source:
Tutorials:

The service provider to register an instance of AppConfiguration on the container.

Type:

Type Definitions

AppConfigurationOptions

Source:
Properties:
Name Type Attributes Default Description
defaultConfigurationName string <optional>
'default'

The name of the default configuration.

environmentVariable string <optional>
'APP_CONFIG'

The name of the variable it will read in order to determine which configuration to load.

path string <optional>
'./config/[app-name]'

The path to the configurations directory, relative to the project root path.

filenameFormat string <optional>
'[app-name].[name].config.js'

The name format of the configuration files. You need to use the [name] placeholder so the service can replace it with the name of the configuration.

Type:

AppConfigurationProviderOptions

Source:
Properties:
Name Type Description
serviceName string

The name that will be used to register an instance of AppConfiguration. Its default value is appConfiguration.

appName string

The name of the application.

defaultConfiguration Object

The service default configuration.

options Partial.<AppConfigurationOptions>

Overwrites for the service customization options.

services AppConfigurationServiceMap

A dictionary with the services that need to be injected on the class.

Type:

AppConfigurationServiceMap

Source:
Properties:
Name Type Attributes Description
environmentUtils string | EnvironmentUtils <optional>

The name of the service for EnvironmentUtils or an instance of it. environmentUtils by default.

rootRequire string | RootRequireFn <optional>

The name of the service for RootRequireFn or an instance of it. rootRequire by default.

Type: