fix ENV variables, apply ENV in frontend config

This commit is contained in:
GotPPay
2018-06-12 08:30:02 +02:00
parent f3cc013344
commit f5866292e4
2 changed files with 8 additions and 12 deletions

View File

@@ -6,14 +6,14 @@ const API_VERSION = 'v2';
const API_SERVER_BASE = (() => {
if(APPLICAITON_MODE === 'TEST'){
return process.env.TEST_URL;
return process.env.REACT_APP_TEST_URL;
}
if(APPLICAITON_MODE === 'PROD'){
return process.env.PROD_URL;
return process.env.REACT_APP_PROD_URL;
}
return 'http://localhost:8000';
return process.env.REACT_APP_DEV_URL;
})();
const API_SERVER = API_SERVER_BASE + '/' + API_VERSION;