@viewdo/dxp-story-cli
Version:
README.md
18 lines (14 loc) • 589 B
JavaScript
const getApi = (namespace, api_type) => {
if(namespace !== 'default') {
return `https://dxp-${api_type}.${namespace}.viewdo.run`
} else
return `https://${api_type}.view.do`
}
const namespace = process.env.NAMESPACE || 'develop'
module.exports = {
auth_api: getApi(namespace,'auth'),
domain_api: getApi(namespace, 'api'),
xapi_api: getApi(namespace, 'xapi'),
auth0_domain: namespace === 'default' ? "https://dotedu-tech.auth0.com" : "https://dotedu-test.auth0.com",
audience: namespace === 'default' ? "https://api.dxp.media" : "https://ivx-api.dev.dotedu.run"
}