Add hostUrl to env config

This commit is contained in:
Leonard Smith 2020-10-05 16:28:21 -05:00
parent c432373fef
commit f88fb58ae4
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;