Loads configuration from text files in JSON format.
(YAML will come)
- {file_name}.{env_name}.json
- {file_name}.{suffix_name}.json
- {file_name}.json
The sourced content will be available in the App's context in a key that reflects the file name without the extension:
getContext('meta.{fileName}.key.key');
Change the source for the meta files that should be sourced.
Default: /var/lib/meta
Change the local suffix to look for when sourcing the file.
Default: local
List of the files to source. Use full name with extension (.json) but without suffix.
Default: []
const f1 = {
target: '$META_SOURCE',
handler: () => 'file_name.json',
};