diff --git a/cli/src/commands/build.js b/cli/src/commands/build.js index a77787918..07e047e6f 100644 --- a/cli/src/commands/build.js +++ b/cli/src/commands/build.js @@ -37,8 +37,9 @@ const setAppParameters = (standalone, config) => { standalone === false || (typeof standalone === 'undefined' && !config.standalone) ) { - process.env.DHIS2_BASE_URL = - process.env.DHIS2_BASE_URL || config.coreApp ? `..` : `../../..` + const defaultBase = config.coreApp ? `..` : `../../..` + process.env.DHIS2_BASE_URL = process.env.DHIS2_BASE_URL || defaultBase + printBuildParam('DHIS2_BASE_URL', process.env.DHIS2_BASE_URL) } else { printBuildParam('DHIS2_BASE_URL', '')