Chore: Update test api host (#15807)

pull/15925/head^2
iamkun 2019-06-04 13:58:24 +08:00 committed by GitHub
parent 7259db0f49
commit 4fb732f4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,7 @@ const { version } = Element;
const hostList = {
local: 'http://localhost:3008/',
alpha: 'https://ssr.alpha.elenet.me/element-theme-server/',
production: 'https://ssr.ele.me/element-theme-server/',
productionEle: 'https://ssr.elenet.me/element-theme-server/'
production: 'https://ssr.ele.me/element-theme-server/'
};
const host = hostList[process.env.FAAS_ENV] || hostList.production;
@ -17,7 +16,7 @@ export const getVars = () => {
};
export const getTestEle = () => {
return get(`${hostList.productionEle}getVariable?version=${version}`);
return get(`${hostList.alpha}getVariable?version=${version}`);
};
export const updateVars = (data, cb) => {