You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I changed it in the MVD repo. My issue was half a year ago though and I ended up using a workaround, because from the comment on line 81 in app.module.ts in the DataDashboard repo:
provide: HTTP_INTERCEPTORS, multi: true, useFactory: () => {
let i = new EdcApiKeyInterceptor();
// TODO: read this from app.config.json??
i.apiKey = environment.apiKey
return i;
}, deps: [AppConfigService]
},
it looked like it just wasn't implemented to take a different API key.
I double-checked and the code-block still looks the same today on the main branch.
Bug Report
Describe the Bug
The API Key configured in app.config.json seems to be ignored and is instead taken exclusively from the environment config (e.g. environment.prod.ts).
Expected Behavior
API Key configured in app.config.json is used by the frontend.
Observed Behavior
API Key from the environment config (e.g. environment.prod.ts) is used, even if there is a different value configured in app.config.json.
Steps to Reproduce
Steps to reproduce the behavior:
Context Information
There is an existing "TODO" in the code at line 83 of app.module.ts, but I haven't found a corresponding issue.
Possible Implementation
The value in the environment file could be taken as a default, overwritten by the app config if it is configured there.
The text was updated successfully, but these errors were encountered: