function updateAPI (parsedJson) {
    if (process.env.APIHOST) {
        parsedJson.general.api = process.env.APIHOST; // APIHOST to define an API to point to
    }
    return parsedJson;
}
/*
 * Replace the API host in the config files based on the APIHOST env variable
 * Note: this is structure sensitive. After merging, the api is under 'general'
 */
Replace the API host in the config files based on the APIHOST env variable
Note: this is structure sensitive. After merging, the api is under 'general'
Replace the API host in the config files based on the APIHOST env variable Note : this is structure sensitive . After merging the api is under ' general '
function updateAPI (parsedJson) {
    if (process.env.APIHOST) {
        parsedJson.general.api = process.env.APIHOST; 
    }
    return parsedJson;
}
function updateAPI ( parsedJson ) { if ( process . env . APIHOST ) { parsedJson . general . api = process . env . APIHOST ; } return parsedJson ; }
Replace the API host in the config files based on the APIHOST env variable
 Note: this is structure sensitive.
Replace the API host in the config files based on the APIHOST env variable Note : this is structure sensitive .
// APIHOST to define an API to point to