Skip to content

Commit d5aab41

Browse files
committed
adds webAppUrl config
1 parent f3189dd commit d5aab41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
*/
4747
tryLoginTimes: 3,
4848
// CodePush Web(https://github.com/lisong/code-push-web) login address.
49-
codePushWebUrl: process.env.WEB_APP_URL || "http://localhost:3000",
49+
webAppUrl: process.env.WEB_APP_URL || "http://localhost:3000",
5050
// create patch updates's number. default value is 3
5151
diffNums: 3,
5252
// data dir for caclulate diff files. it's optimization.

src/routes/redirects.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import validationRouter from '~/core/router'
55
const router = validationRouter()
66

77
router.get('/login', (req, res) => {
8-
const codePushWebUrl = config.common.codePushWebUrl
8+
const codePushWebUrl = config.common.webAppUrl
99
res.redirect(`${codePushWebUrl}/auth/login`);
1010
});
1111

1212
router.get('/register', (req, res) => {
13-
const codePushWebUrl = config.common.codePushWebUrl
13+
const codePushWebUrl = config.common.webAppUrl
1414
res.redirect(`${codePushWebUrl}/register`);
1515
});
1616

0 commit comments

Comments
 (0)