Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/constants/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
2 changes: 2 additions & 0 deletions config/constants/production.js
Original file line number Diff line number Diff line change
@@ -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}/v5`

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}`,
Expand Down
1 change: 1 addition & 0 deletions src/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/util/topcoder-react-lib.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -7,6 +7,7 @@ export const getTopcoderReactLib = () => {
V3: API_V3,
V4: API_V4,
V5: API_V5,
V6: API_V6,
MM_BROKER: '/api'
}
}
Expand Down