Skip to content

Commit 7dc52df

Browse files
committed
chore: don't use "local.topcoder-dev.com" anymore
Auth process doesn't support this domain for auth locally
1 parent bfc9d56 commit 7dc52df

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ npm install
3939

4040
1. copy the environment file in docs/dev.env to /.env
4141

42-
1. add `127.0.0.1 local.topcoder-dev.com` to your /etc/hosts file
43-
4442
1. If you are using local instances of the API's, change the DEV_API_HOSTNAME in configs/constants/development.js to match your local api endpoint.
4543
- For example change it to 'http://localhost:3000/',
4644

@@ -50,7 +48,7 @@ npm install
5048
npm run dev
5149
```
5250

53-
You can access the app from [http://local.topcoder-dev.com:3001/](http://local.topcoder-dev.com:3001/)
51+
You can access the app from [http://localhost:3000/](http://localhost:3000/)
5452

5553
The page will reload if you make edits.
5654

config/constants/development.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
COMMUNITY_APP_URL: `https://www.${DOMAIN}`,
88
MEMBER_API_URL: `${DEV_API_HOSTNAME}/v4/members`,
99
MEMBER_API_V3_URL: `${DEV_API_HOSTNAME}/v3/members`,
10-
DEV_APP_URL: `http://local.${DOMAIN}`,
1110
CHALLENGE_API_URL: `${DEV_API_HOSTNAME}/v5/challenges`,
1211
CHALLENGE_TIMELINE_TEMPLATES_URL: `${DEV_API_HOSTNAME}/v5/timeline-templates`,
1312
CHALLENGE_TYPES_URL: `${DEV_API_HOSTNAME}/v5/challenge-types`,

config/constants/production.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
COMMUNITY_APP_URL: `https://www.${DOMAIN}`,
88
MEMBER_API_URL: `${PROD_API_HOSTNAME}/v4/members`,
99
MEMBER_API_V3_URL: `${PROD_API_HOSTNAME}/v3/members`,
10-
DEV_APP_URL: `https://submission-review.${DOMAIN}`,
1110
CHALLENGE_API_URL: `${PROD_API_HOSTNAME}/v5/challenges`,
1211
CHALLENGE_TIMELINE_TEMPLATES_URL: `${PROD_API_HOSTNAME}/v5/timeline-templates`,
1312
CHALLENGE_TYPES_URL: `${PROD_API_HOSTNAME}/v5/challenge-types`,

scripts/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ checkBrowsers(paths.appPath, isInteractive)
9999
clearConsole()
100100
}
101101
console.log(chalk.cyan('Starting the development server...\n'))
102-
openBrowser(constants.DEV_APP_URL ? `${constants.DEV_APP_URL}:${process.env.PORT || 3000}` : urls.localUrlForBrowser)
102+
openBrowser(urls.localUrlForBrowser)
103103
})
104104

105105
const SIGNALS = ['SIGINT', 'SIGTERM']

0 commit comments

Comments
 (0)