Type Alias JimpexConfigOptions

JimpexConfigOptions: {
    default: unknown;
    defaultConfigFilename: string;
    environmentVariable: string;
    filenameFormat: string;
    hasFolder: boolean;
    loadFromEnvironment: boolean;
    name: string;
    path: string;
}

The options for the application's configuration service.

Type declaration

  • default: unknown

    The default settings for the configuration. If no external configuration is used, this needs to include a port property.

  • defaultConfigFilename: string

    The name of the default configuration file.

    '[app-name].config.js'
    
  • environmentVariable: string

    The name of the environment variable that will be used to set the active configuration.

    'CONFIG'
    
  • filenameFormat: string

    The name format of other external configuration files.

    '[app-name].[config-name].config.js'
    
  • hasFolder: boolean

    Whether the configuration files are inside a sub directory or not. If true, a configuration path would be config/[app-name]/[file].

    false
    
  • loadFromEnvironment: boolean

    Whether or not to check for the environment variable and load a configuration file based on its value.

    true
    
  • name: string

    The name of the application, used for external configuration files.

    'app'
    
  • path: string

    The path to where external configuration files are stored. Relative to the project root.

    'config/'