18 lines
320 B
JavaScript
18 lines
320 B
JavaScript
|
const getConfig = require('./GhostConfig');
|
||
|
|
||
|
let config;
|
||
|
function initConfig() {
|
||
|
if (!config) {
|
||
|
config = getConfig();
|
||
|
}
|
||
|
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @description Initialise nconf config object.
|
||
|
*
|
||
|
* The config object is cached, once it has been setup with the parent
|
||
|
*/
|
||
|
module.exports = initConfig();
|