Skip to content

Commit 61ad7ae

Browse files
author
Vikas Agarwal
committed
Allowing overriding accounts app URLs via env variables.
1 parent 7e37bdb commit 61ad7ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ export const SEGMENT_KEY = process.env.CONNECT_SEGMENT_KEY
225225
export const DOMAIN = process.env.domain || 'topcoder.com'
226226
export const CONNECT_DOMAIN = `connect.${DOMAIN}`
227227
export const ACCOUNTS_APP_CONNECTOR_URL = process.env.ACCOUNTS_APP_CONNECTOR_URL
228-
export const ACCOUNTS_APP_LOGIN_URL = `https://accounts.${DOMAIN}/#!/connect`
229-
export const ACCOUNTS_APP_REGISTER_URL = `https://accounts.${DOMAIN}/#!/connect/registration`
228+
export const ACCOUNTS_APP_LOGIN_URL = process.env.ACCOUNTS_APP_LOGIN_URL || `https://accounts.${DOMAIN}/#!/connect`
229+
export const ACCOUNTS_APP_REGISTER_URL = process.env.ACCOUNTS_APP_REGISTER_URL || `https://accounts.${DOMAIN}/#!/connect/registration`
230230

231231
export const TC_API_URL = `https://api.${DOMAIN}`
232232
export const DIRECT_PROJECT_URL = `https://www.${DOMAIN}/direct/projectOverview?formData.projectId=`

0 commit comments

Comments
 (0)