forked from WycliffeAssociates/en_btr_frontend
Add hostUrl to env config
This commit is contained in:
parent
c432373fef
commit
f88fb58ae4
|
@ -1,6 +1,7 @@
|
|||
import JSONAPIAdapter from '@ember-data/adapter/json-api';
|
||||
import ENV from 'gwt-frontend/config/environment';
|
||||
|
||||
export default class ApplicationAdapter extends JSONAPIAdapter {
|
||||
namepace = 'api/v1/';
|
||||
host = 'http://gwt.api';
|
||||
namespace = 'api/v1';
|
||||
host = ENV.APP.hostUrl;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ module.exports = function(environment) {
|
|||
// ENV.APP.LOG_TRANSITIONS = true;
|
||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
ENV.APP.hostUrl = 'http://gwt.api';
|
||||
}
|
||||
|
||||
if (environment === 'test') {
|
||||
|
@ -45,6 +46,7 @@ module.exports = function(environment) {
|
|||
|
||||
if (environment === 'production') {
|
||||
// here you can enable a production-specific feature
|
||||
ENV.APP.hostUrl = 'http://backend.bibletranslationresources.org';
|
||||
}
|
||||
|
||||
return ENV;
|
||||
|
|
Loading…
Reference in New Issue