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 JSONAPIAdapter from '@ember-data/adapter/json-api';
|
||||||
|
import ENV from 'gwt-frontend/config/environment';
|
||||||
|
|
||||||
export default class ApplicationAdapter extends JSONAPIAdapter {
|
export default class ApplicationAdapter extends JSONAPIAdapter {
|
||||||
namepace = 'api/v1/';
|
namespace = 'api/v1';
|
||||||
host = 'http://gwt.api';
|
host = ENV.APP.hostUrl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ module.exports = function(environment) {
|
||||||
// ENV.APP.LOG_TRANSITIONS = true;
|
// ENV.APP.LOG_TRANSITIONS = true;
|
||||||
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||||
|
ENV.APP.hostUrl = 'http://gwt.api';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (environment === 'test') {
|
if (environment === 'test') {
|
||||||
|
@ -45,6 +46,7 @@ module.exports = function(environment) {
|
||||||
|
|
||||||
if (environment === 'production') {
|
if (environment === 'production') {
|
||||||
// here you can enable a production-specific feature
|
// here you can enable a production-specific feature
|
||||||
|
ENV.APP.hostUrl = 'http://backend.bibletranslationresources.org';
|
||||||
}
|
}
|
||||||
|
|
||||||
return ENV;
|
return ENV;
|
||||||
|
|
Loading…
Reference in New Issue