skip manual building process
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
import processReducer from "./reducers/orders/processReducers";
|
||||
|
||||
const APPLICAITON_MODE = 'DEV';
|
||||
const APPLICATION_NAME = 'Co-Market';
|
||||
const API_VERSION = 'v2';
|
||||
|
||||
const API_SERVER_BASE = (() => {
|
||||
if(APPLICAITON_MODE === 'TEST'){
|
||||
return 'http://localhost:8000/api-wiaas';
|
||||
return process.env.TEST_URL;
|
||||
}
|
||||
|
||||
if(APPLICAITON_MODE === 'PROD'){
|
||||
return 'http://localhost:8000/api-wiaas';
|
||||
return process.env.PROD_URL;
|
||||
}
|
||||
|
||||
return 'http://localhost:8000/api-wiaas';
|
||||
return 'http://localhost:8000';
|
||||
})();
|
||||
|
||||
const API_SERVER = API_SERVER_BASE + '/' + API_VERSION;
|
||||
|
||||
Reference in New Issue
Block a user