Skip to content

Commit

Permalink
Chore: Update test api host
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed May 31, 2019
1 parent 1afce45 commit e63f9ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/components/theme/loader/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) => {
Expand Down

0 comments on commit e63f9ce

Please sign in to comment.