New frontend config for webserver url to fix static asset httpGet.

Removed "absolute" from config names.
This commit is contained in:
softsimon
2020-11-23 18:22:21 +07:00
parent 9bd477d545
commit 52beee3d2d
6 changed files with 23 additions and 13 deletions

View File

@@ -23,13 +23,13 @@ export class ApiService {
}
this.apiBaseUrl = API_BASE_URL.replace('{network}', network ? '/' + network : '');
if (!stateService.isBrowser) {
this.apiBaseUrl = this.stateService.env.BACKEND_ABSOLUTE_URL + this.apiBaseUrl;
this.apiBaseUrl = this.stateService.env.BACKEND_URL + this.apiBaseUrl;
}
});
this.apiBaseUrl = API_BASE_URL.replace('{network}', '');
if (!stateService.isBrowser) {
this.apiBaseUrl = this.stateService.env.BACKEND_ABSOLUTE_URL + this.apiBaseUrl;
this.apiBaseUrl = this.stateService.env.BACKEND_URL + this.apiBaseUrl;
}
}