后台:公告
This commit is contained in:
@@ -72,14 +72,14 @@ export default (appInfo: EggAppInfo) => {
|
||||
maxFileSize: 1024,
|
||||
};
|
||||
|
||||
config.bigServers = [ // 大区数据
|
||||
let regions = [ // 大区数据
|
||||
{ id: 1, env: 'stable', name: "常山少年", domain: 'http://pinus_gm_test.trgame.cn' },
|
||||
{ id: 2, env: 'alpha', name: "测试服", domain: 'http://zyz_gm.trgame.cn' },
|
||||
{ id: 3, env: 'dev', name: "开发服", domain: 'http://zyzdev_gm.trgame.cn' }
|
||||
];
|
||||
|
||||
let httpProxy: any = {};
|
||||
for(let { env, domain } of config.bigServers) {
|
||||
for(let { env, domain } of regions) {
|
||||
httpProxy[`/api/${env}`] = {
|
||||
target: domain,
|
||||
changeOrigin: true,
|
||||
@@ -90,7 +90,6 @@ export default (appInfo: EggAppInfo) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
config.proxy = httpProxy;
|
||||
|
||||
// the return config will combines to EggAppConfig
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user