@@ -70,81 +70,81 @@ module.exports = {
7070} ;
7171
7272const frontendConfigs = {
73- " local" : {
74- " JWT_V3_NAME" : " v3jwt" ,
75- " JWT_V2_NAME" : " tcjwt" ,
76- " COOKIES_SECURE" : false ,
77- " TC_LOGIN_URL" : " https://accounts-auth0.topcoder-dev.com/" ,
78- " API_URL" : " https://127.0.0.1:8443" ,
79- " ADMIN_TOOL_URL" : " http://localhost:8080/api/v2" ,
80- " ACCOUNTS_CONNECTOR_URL" : " https://accounts.topcoder-dev.com/connector.html" ,
81- " DIRECT_URL_BASE" : " https://www.topcoder-dev/direct/projectOverview?formData.projectId=" ,
82- " OWNER_LOGIN_GITHUB_URL" : " /api/v1/github/owneruser/login" ,
83- " OWNER_LOGIN_GITLAB_URL" : " /api/v1/gitlab/owneruser/login" ,
84- " TOPCODER_URL" : " https://topcoder-dev.com" ,
85- " GITHUB_TEAM_URL" : " https://github.com/orgs/" ,
86- " GITLAB_GROUP_URL" : " https://gitlab.com/groups/"
73+ local : {
74+ JWT_V3_NAME : ' v3jwt' ,
75+ JWT_V2_NAME : ' tcjwt' ,
76+ COOKIES_SECURE : false ,
77+ TC_LOGIN_URL : ' https://accounts-auth0.topcoder-dev.com/' ,
78+ API_URL : ' https://127.0.0.1:8443' ,
79+ ADMIN_TOOL_URL : ' http://localhost:8080/api/v2' ,
80+ ACCOUNTS_CONNECTOR_URL : ' https://accounts.topcoder-dev.com/connector.html' ,
81+ DIRECT_URL_BASE : ' https://www.topcoder-dev/direct/projectOverview?formData.projectId=' ,
82+ OWNER_LOGIN_GITHUB_URL : ' /api/v1/github/owneruser/login' ,
83+ OWNER_LOGIN_GITLAB_URL : ' /api/v1/gitlab/owneruser/login' ,
84+ TOPCODER_URL : ' https://topcoder-dev.com' ,
85+ GITHUB_TEAM_URL : ' https://github.com/orgs/' ,
86+ GITLAB_GROUP_URL : ' https://gitlab.com/groups/' ,
8787 } ,
88- " heroku" : {
89- " JWT_V3_NAME" : " v3jwt" ,
90- " JWT_V2_NAME" : " tcjwt" ,
91- " COOKIES_SECURE" : false ,
92- " TC_LOGIN_URL" : " https://accounts-auth0.topcoder-dev.com/" ,
93- " API_URL" : " https://api.topcoder-dev.com" ,
94- " ADMIN_TOOL_URL" : " https://api.topcoder-dev.com/v2" ,
95- " ACCOUNTS_CONNECTOR_URL" : " https://accounts.topcoder-dev.com/connector.html" ,
96- " DIRECT_URL_BASE" : " https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
97- " OWNER_LOGIN_GITHUB_URL" : " /api/v1/github/owneruser/login" ,
98- " OWNER_LOGIN_GITLAB_URL" : " /api/v1/gitlab/owneruser/login" ,
99- " TOPCODER_URL" : " https://topcoder-dev.com" ,
100- " GITHUB_TEAM_URL" : " https://github.com/orgs/" ,
101- " GITLAB_GROUP_URL" : " https://gitlab.com/groups/"
88+ heroku : {
89+ JWT_V3_NAME : ' v3jwt' ,
90+ JWT_V2_NAME : ' tcjwt' ,
91+ COOKIES_SECURE : false ,
92+ TC_LOGIN_URL : ' https://accounts-auth0.topcoder-dev.com/' ,
93+ API_URL : ' https://api.topcoder-dev.com' ,
94+ ADMIN_TOOL_URL : ' https://api.topcoder-dev.com/v2' ,
95+ ACCOUNTS_CONNECTOR_URL : ' https://accounts.topcoder-dev.com/connector.html' ,
96+ DIRECT_URL_BASE : ' https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=' ,
97+ OWNER_LOGIN_GITHUB_URL : ' /api/v1/github/owneruser/login' ,
98+ OWNER_LOGIN_GITLAB_URL : ' /api/v1/gitlab/owneruser/login' ,
99+ TOPCODER_URL : ' https://topcoder-dev.com' ,
100+ GITHUB_TEAM_URL : ' https://github.com/orgs/' ,
101+ GITLAB_GROUP_URL : ' https://gitlab.com/groups/' ,
102102 } ,
103- " dev" : {
104- " JWT_V3_NAME" : " v3jwt" ,
105- " JWT_V2_NAME" : " tcjwt" ,
106- " COOKIES_SECURE" : false ,
107- " TC_LOGIN_URL" : " https://accounts-auth0.topcoder-dev.com/" ,
108- " API_URL" : " https://api.topcoder-dev.com" ,
109- " ADMIN_TOOL_URL" : " https://api.topcoder-dev.com/v2" ,
110- " ACCOUNTS_CONNECTOR_URL" : " https://accounts.topcoder-dev.com/connector.html" ,
111- " DIRECT_URL_BASE" : " https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
112- " OWNER_LOGIN_GITHUB_URL" : " /api/v1/github/owneruser/login" ,
113- " OWNER_LOGIN_GITLAB_URL" : " /api/v1/gitlab/owneruser/login" ,
114- " TOPCODER_URL" : " https://topcoder-dev.com" ,
115- " GITHUB_TEAM_URL" : " https://github.com/orgs/" ,
116- " GITLAB_GROUP_URL" : " https://gitlab.com/groups/"
103+ dev : {
104+ JWT_V3_NAME : ' v3jwt' ,
105+ JWT_V2_NAME : ' tcjwt' ,
106+ COOKIES_SECURE : false ,
107+ TC_LOGIN_URL : ' https://accounts-auth0.topcoder-dev.com/' ,
108+ API_URL : ' https://api.topcoder-dev.com' ,
109+ ADMIN_TOOL_URL : ' https://api.topcoder-dev.com/v2' ,
110+ ACCOUNTS_CONNECTOR_URL : ' https://accounts.topcoder-dev.com/connector.html' ,
111+ DIRECT_URL_BASE : ' https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=' ,
112+ OWNER_LOGIN_GITHUB_URL : ' /api/v1/github/owneruser/login' ,
113+ OWNER_LOGIN_GITLAB_URL : ' /api/v1/gitlab/owneruser/login' ,
114+ TOPCODER_URL : ' https://topcoder-dev.com' ,
115+ GITHUB_TEAM_URL : ' https://github.com/orgs/' ,
116+ GITLAB_GROUP_URL : ' https://gitlab.com/groups/' ,
117117 } ,
118- "qa" : {
119- "JWT_V3_NAME" : "v3jwt" ,
120- "JWT_V2_NAME" : "tcjwt" ,
121- "COOKIES_SECURE" : false ,
122- "TC_LOGIN_URL" : "https://accounts-auth0.topcoder-dev.com/" ,
123- "API_URL" : "https://api.topcoder-qa.com" ,
124- "ADMIN_TOOL_URL" : "https://api.topcoder-qa.com/v2" ,
125- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder-qa.com/connector.html" ,
126- "DIRECT_URL_BASE" : "https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=" ,
127- "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
128- "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
129- "TOPCODER_URL" : "https://topcoder-dev.com" ,
130- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
131- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
118+ qa : {
119+ JWT_V3_NAME : 'v3jwt' ,
120+ JWT_V2_NAME : 'tcjwt' ,
121+ COOKIES_SECURE : false ,
122+ TC_LOGIN_URL : 'https://accounts-auth0.topcoder-dev.com/' ,
123+ API_URL : 'https://api.topcoder-qa.com' ,
124+ ADMIN_TOOL_URL : 'https://api.topcoder-qa.com/v2' ,
125+ ACCOUNTS_CONNECTOR_URL : 'https://accounts.topcoder-qa.com/connector.html' ,
126+ DIRECT_URL_BASE : 'https://www.topcoder-dev.com/direct/projectOverview?formData.projectId=' ,
127+ OWNER_LOGIN_GITHUB_URL : '/api/v1/github/owneruser/login' ,
128+ OWNER_LOGIN_GITLAB_URL : '/api/v1/gitlab/owneruser/login' ,
129+ TOPCODER_URL : 'https://topcoder-dev.com' ,
130+ GITHUB_TEAM_URL : 'https://github.com/orgs/' ,
131+ GITLAB_GROUP_URL : 'https://gitlab.com/groups/' ,
132+ } ,
133+ prod : {
134+ JWT_V3_NAME : 'v3jwt' ,
135+ JWT_V2_NAME : 'tcjwt' ,
136+ COOKIES_SECURE : false ,
137+ TC_LOGIN_URL : 'https://accounts.topcoder.com/member' ,
138+ API_URL : 'https://api.topcoder.com' ,
139+ ADMIN_TOOL_URL : 'https://api.topcoder.com/v2' ,
140+ ACCOUNTS_CONNECTOR_URL : 'https://accounts.topcoder.com/connector.html' ,
141+ DIRECT_URL_BASE : 'https://www.topcoder.com/direct/projectOverview?formData.projectId=' ,
142+ OWNER_LOGIN_GITHUB_URL : '/api/v1/github/owneruser/login' ,
143+ OWNER_LOGIN_GITLAB_URL : '/api/v1/gitlab/owneruser/login' ,
144+ TOPCODER_URL : 'https://topcoder-dev.com' ,
145+ GITHUB_TEAM_URL : 'https://github.com/orgs/' ,
146+ GITLAB_GROUP_URL : 'https://gitlab.com/groups/' ,
132147 } ,
133- "prod" : {
134- "JWT_V3_NAME" : "v3jwt" ,
135- "JWT_V2_NAME" : "tcjwt" ,
136- "COOKIES_SECURE" : false ,
137- "TC_LOGIN_URL" : "https://accounts.topcoder.com/member" ,
138- "API_URL" : "https://api.topcoder.com" ,
139- "ADMIN_TOOL_URL" : "https://api.topcoder.com/v2" ,
140- "ACCOUNTS_CONNECTOR_URL" : "https://accounts.topcoder.com/connector.html" ,
141- "DIRECT_URL_BASE" : "https://www.topcoder.com/direct/projectOverview?formData.projectId=" ,
142- "OWNER_LOGIN_GITHUB_URL" : "/api/v1/github/owneruser/login" ,
143- "OWNER_LOGIN_GITLAB_URL" : "/api/v1/gitlab/owneruser/login" ,
144- "TOPCODER_URL" : "https://topcoder-dev.com" ,
145- "GITHUB_TEAM_URL" : "https://github.com/orgs/" ,
146- "GITLAB_GROUP_URL" : "https://gitlab.com/groups/"
147- }
148148} ;
149149
150150const activeEnv = module . exports . TOPCODER_ENV ;
@@ -164,5 +164,5 @@ module.exports.frontendConfigs = {
164164 OWNER_LOGIN_GITLAB_URL : process . env . OWNER_LOGIN_GITLAB_URL || frontendConfigs [ activeEnv ] . OWNER_LOGIN_GITLAB_URL ,
165165 TOPCODER_URL : process . env . TOPCODER_URL || frontendConfigs [ activeEnv ] . TOPCODER_URL ,
166166 GITHUB_TEAM_URL : process . env . GITHUB_TEAM_URL || frontendConfigs [ activeEnv ] . GITHUB_TEAM_URL ,
167- GITLAB_GROUP_URL : process . env . GITLAB_GROUP_URL || frontendConfigs [ activeEnv ] . GITLAB_GROUP_URL
167+ GITLAB_GROUP_URL : process . env . GITLAB_GROUP_URL || frontendConfigs [ activeEnv ] . GITLAB_GROUP_URL ,
168168} ;
0 commit comments