Skip to content

Commit

Permalink
NRPT-750: Making config service use env vars (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Truong authored May 12, 2021
1 parent 31f7cf9 commit 101f76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/projects/global/src/lib/services/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>(`http://localhost:3000/api/config/${application}`).toPromise();
const res = await this.http.get<any>(`${window['__env']['API_LOCATION']}${window['__env']['API_PATH']}/config/${application}`).toPromise();
this.configuration = window['__env'];
this.configuration = { ...this.configuration, ...res };
} catch (error) {
Expand Down

0 comments on commit 101f76b

Please sign in to comment.