diff --git a/angular/projects/global/src/lib/services/config.service.ts b/angular/projects/global/src/lib/services/config.service.ts index 666f857a7..9fe776e75 100644 --- a/angular/projects/global/src/lib/services/config.service.ts +++ b/angular/projects/global/src/lib/services/config.service.ts @@ -31,7 +31,7 @@ export class ConfigService { try { // This try is to attempt to get config in your local environment. // It will try and do a get on localhost:3000/api/config... - const res = await this.http.get(`http://localhost:3000/api/config/${application}`).toPromise(); + const res = await this.http.get(`${window['__env']['API_LOCATION']}${window['__env']['API_PATH']}/config/${application}`).toPromise(); this.configuration = window['__env']; this.configuration = { ...this.configuration, ...res }; } catch (error) {