diff --git a/src/helpers/urlUtils.js b/src/helpers/urlUtils.js index 9bce2c0c2..e8b3908c2 100644 --- a/src/helpers/urlUtils.js +++ b/src/helpers/urlUtils.js @@ -1,6 +1,9 @@ -import { get } from 'lodash'; +import getRuntimeEnv from 'helpers/getRuntimeEnv'; -export const adminConsoleUrl = url => `${get(process.env, 'DOMAIN', '')}/${url}`; +export const adminConsoleUrl = (url) => { + const { DOMAIN } = getRuntimeEnv(); + return `${DOMAIN}/${url}`; +}; export const generateMfeRoutes = mfe => mfe.reduce((acc, curr) => { if (curr.descriptorExt && curr.descriptorExt.paths) {