diff --git a/config/constants/development.js b/config/constants/development.js index 91052fa4..b87c0e49 100644 --- a/config/constants/development.js +++ b/config/constants/development.js @@ -2,12 +2,14 @@ const DOMAIN = 'topcoder-dev.com' const DEV_API_HOSTNAME = `https://api.${DOMAIN}` const API_V5 = `${DEV_API_HOSTNAME}/v5` +const API_V6 = `${DEV_API_HOSTNAME}/v6` module.exports = { API_V2: `${DEV_API_HOSTNAME}/v2`, API_V3: `${DEV_API_HOSTNAME}/v3`, API_V4: `${DEV_API_HOSTNAME}/v4`, API_V5, + API_V6, ACCOUNTS_APP_CONNECTOR_URL: `https://accounts-auth0.${DOMAIN}`, ACCOUNTS_APP_LOGIN_URL: `https://accounts-auth0.${DOMAIN}`, COMMUNITY_APP_URL: `https://www-v6.${DOMAIN}`, diff --git a/config/constants/production.js b/config/constants/production.js index b7b22228..8d51d400 100644 --- a/config/constants/production.js +++ b/config/constants/production.js @@ -1,12 +1,14 @@ const DOMAIN = 'topcoder.com' const PROD_API_HOSTNAME = `https://api.${DOMAIN}` const API_V5 = `${PROD_API_HOSTNAME}/v5` +const API_V6 = `${PROD_API_HOSTNAME}/v6` module.exports = { API_V2: `${PROD_API_HOSTNAME}/v2`, API_V3: `${PROD_API_HOSTNAME}/v3`, API_V4: `${PROD_API_HOSTNAME}/v4`, API_V5, + API_V6, ACCOUNTS_APP_CONNECTOR_URL: process.env.ACCOUNTS_APP_CONNECTOR_URL || `https://accounts-auth0.${DOMAIN}`, ACCOUNTS_APP_LOGIN_URL: `https://accounts-auth0.${DOMAIN}`, COMMUNITY_APP_URL: `https://www.${DOMAIN}`, diff --git a/src/config/constants.js b/src/config/constants.js index 51541c75..5067c12a 100644 --- a/src/config/constants.js +++ b/src/config/constants.js @@ -31,6 +31,7 @@ export const { API_V3, API_V4, API_V5, + API_V6, SKILLS_V5_API_URL, UPDATE_SKILLS_V5_API_URL, SALESFORCE_BILLING_ACCOUNT_LINK, diff --git a/src/util/topcoder-react-lib.js b/src/util/topcoder-react-lib.js index e139379b..9b6d265a 100644 --- a/src/util/topcoder-react-lib.js +++ b/src/util/topcoder-react-lib.js @@ -1,4 +1,4 @@ -import { API_V2, API_V3, API_V4, API_V5 } from '../config/constants' +import { API_V2, API_V3, API_V4, API_V5, API_V6 } from '../config/constants' export const getTopcoderReactLib = () => { window.CONFIG = { @@ -7,6 +7,7 @@ export const getTopcoderReactLib = () => { V3: API_V3, V4: API_V4, V5: API_V5, + V6: API_V6, MM_BROKER: '/api' } }