diff --git a/config/default.js b/config/default.js index b82efe6..3b7344b 100644 --- a/config/default.js +++ b/config/default.js @@ -1,5 +1,5 @@ module.exports = { - GUIKIT: { + GUIKIT: { DEBOUNCE_ON_CHANGE_TIME: 150, }, API: { @@ -7,6 +7,7 @@ module.exports = { V3: "https://api.topcoder-dev.com/v3", }, URL: { + BASE: "https://www.topcoder-dev.com", COMMUNITY_APP: "https://community-app.topcoder-dev.com", - } -} + }, +}; diff --git a/config/development.js b/config/development.js index bc871f7..3b7344b 100644 --- a/config/development.js +++ b/config/development.js @@ -7,6 +7,7 @@ module.exports = { V3: "https://api.topcoder-dev.com/v3", }, URL: { + BASE: "https://www.topcoder-dev.com", COMMUNITY_APP: "https://community-app.topcoder-dev.com", }, }; diff --git a/config/production.js b/config/production.js index 1d91e6b..bc4ca05 100644 --- a/config/production.js +++ b/config/production.js @@ -7,6 +7,7 @@ module.exports = { V3: "https://api.topcoder.com/v3", }, URL: { + BASE: "https://www.topcoder.com", COMMUNITY_APP: "https://community-app.topcoder.com", }, }; diff --git a/src/containers/Challenges/Listing/ChallengeItem/index.jsx b/src/containers/Challenges/Listing/ChallengeItem/index.jsx index b31a48a..c878977 100644 --- a/src/containers/Challenges/Listing/ChallengeItem/index.jsx +++ b/src/containers/Challenges/Listing/ChallengeItem/index.jsx @@ -38,7 +38,7 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => { <div styleName="name-container"> <h6 styleName="name"> <a - href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}`} // eslint-disable-line no-undef + href={`${process.env.URL.BASE}/challenges/${challenge.id}`} // eslint-disable-line no-undef > {challenge.name} </a> @@ -65,12 +65,12 @@ const ChallengeItem = ({ challenge, onClickTag, onClickTrack }) => { </div> <div styleName="nums"> <a - href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef + href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=registrants`} // eslint-disable-line no-undef > <NumRegistrants numOfRegistrants={challenge.numOfRegistrants} /> </a> <a - href={`${process.env.URL.COMMUNITY_APP}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef + href={`${process.env.URL.BASE}/challenges/${challenge.id}?tab=submissions`} // eslint-disable-line no-undef > <NumSubmissions numOfSubmissions={challenge.numOfSubmissions} /> </a>