From beb528c91807d2808127f1be00edb7479fca4cf8 Mon Sep 17 00:00:00 2001 From: Justin Gasper Date: Sat, 13 Feb 2021 14:04:38 +1100 Subject: [PATCH] Fix merge issue --- src/config.js | 79 --------------------------------------------------- 1 file changed, 79 deletions(-) diff --git a/src/config.js b/src/config.js index 730f4e1..4e3e480 100644 --- a/src/config.js +++ b/src/config.js @@ -67,85 +67,6 @@ module.exports = { }, }; -const frontendConfigs = { - local: { - JWT_V3_NAME: 'v3jwt', - JWT_V2_NAME: 'tcjwt', - COOKIES_SECURE: false, - TC_LOGIN_URL: 'https://accounts-auth0.topcoder-dev.com/', - API_URL: 'https://127.0.0.1:8443', - ADMIN_TOOL_URL: 'http://localhost:8080/api/v2', - ACCOUNTS_CONNECTOR_URL: 'https://accounts.topcoder-dev.com/connector.html', - CONNECT_URL_BASE: 'https://connect.topcoder-dev/projects/', - OWNER_LOGIN_GITHUB_URL: '/api/v1/github/owneruser/login', - OWNER_LOGIN_GITLAB_URL: '/api/v1/gitlab/owneruser/login', - TOPCODER_URL: 'https://topcoder-dev.com', - GITHUB_TEAM_URL: 'https://github.com/orgs/', - GITLAB_GROUP_URL: 'https://gitlab.com/groups/', - }, - heroku: { - JWT_V3_NAME: 'v3jwt', - JWT_V2_NAME: 'tcjwt', - COOKIES_SECURE: false, - TC_LOGIN_URL: 'https://accounts-auth0.topcoder-dev.com/', - API_URL: 'https://api.topcoder-dev.com', - ADMIN_TOOL_URL: 'https://api.topcoder-dev.com/v2', - ACCOUNTS_CONNECTOR_URL: 'https://accounts.topcoder-dev.com/connector.html', - CONNECT_URL_BASE: 'https://connect.topcoder-dev.com/projects/', - OWNER_LOGIN_GITHUB_URL: '/api/v1/github/owneruser/login', - OWNER_LOGIN_GITLAB_URL: '/api/v1/gitlab/owneruser/login', - TOPCODER_URL: 'https://topcoder-dev.com', - GITHUB_TEAM_URL: 'https://github.com/orgs/', - GITLAB_GROUP_URL: 'https://gitlab.com/groups/', - }, - dev: { - JWT_V3_NAME: 'v3jwt', - JWT_V2_NAME: 'tcjwt', - COOKIES_SECURE: false, - TC_LOGIN_URL: 'https://accounts-auth0.topcoder-dev.com/', - API_URL: 'https://api.topcoder-dev.com', - ADMIN_TOOL_URL: 'https://api.topcoder-dev.com/v2', - ACCOUNTS_CONNECTOR_URL: 'https://accounts.topcoder-dev.com/connector.html', - CONNECT_URL_BASE: 'https://connect.topcoder-dev.com/projects/', - OWNER_LOGIN_GITHUB_URL: '/api/v1/github/owneruser/login', - OWNER_LOGIN_GITLAB_URL: '/api/v1/gitlab/owneruser/login', - TOPCODER_URL: 'https://topcoder-dev.com', - GITHUB_TEAM_URL: 'https://github.com/orgs/', - GITLAB_GROUP_URL: 'https://gitlab.com/groups/', - }, - qa: { - JWT_V3_NAME: 'v3jwt', - JWT_V2_NAME: 'tcjwt', - COOKIES_SECURE: false, - TC_LOGIN_URL: 'https://accounts-auth0.topcoder-dev.com/', - API_URL: 'https://api.topcoder-qa.com', - ADMIN_TOOL_URL: 'https://api.topcoder-qa.com/v2', - ACCOUNTS_CONNECTOR_URL: 'https://accounts.topcoder-qa.com/connector.html', - CONNECT_URL_BASE: 'https://connect.topcoder-dev.com/projects/', - OWNER_LOGIN_GITHUB_URL: '/api/v1/github/owneruser/login', - OWNER_LOGIN_GITLAB_URL: '/api/v1/gitlab/owneruser/login', - TOPCODER_URL: 'https://topcoder-dev.com', - GITHUB_TEAM_URL: 'https://github.com/orgs/', - GITLAB_GROUP_URL: 'https://gitlab.com/groups/', - }, - prod: { - JWT_V3_NAME: 'v3jwt', - JWT_V2_NAME: 'tcjwt', - COOKIES_SECURE: false, - TC_LOGIN_URL: 'https://accounts-auth0.topcoder.com/', - API_URL: 'https://api.topcoder.com', - ADMIN_TOOL_URL: 'https://api.topcoder.com/v2', - ACCOUNTS_CONNECTOR_URL: 'https://accounts.topcoder.com/connector.html', - CONNECT_URL_BASE: 'https://connect.topcoder.com/projects/', - OWNER_LOGIN_GITHUB_URL: '/api/v1/github/owneruser/login', - OWNER_LOGIN_GITLAB_URL: '/api/v1/gitlab/owneruser/login', - TOPCODER_URL: 'https://topcoder.com', - GITHUB_TEAM_URL: 'https://github.com/orgs/', - GITLAB_GROUP_URL: 'https://gitlab.com/groups/', - }, -}; - -const activeEnv = module.exports.TOPCODER_ENV; module.exports.frontendConfigs = { copilotRole: module.exports.COPILOT_ROLE, administratorRoles: module.exports.ADMINISTRATOR_ROLES,