I need to consume a remote micro frontend which is an Angular app, this app has its own services to call certain API, it has its own requests to a certain API. Also, that app has a config to set environment variables that contain the URL API. When I'm trying to consume from the main app (Angular as well) I don't know how to set those variables to avoid hard coding them directly to the remote micro frontend. For example the remote app calls
http://rutaapi/api/items
, where "rutaapi/api" is setted with env variables, but the resuult that I'm getting is
https://items/
. So I need to somehow provide that environment variable towards the remote micro frontend.
Additional info.: In the remote app, I'm setting the env variables using the APP_INITIALIZER provide in the AppModule. Maybe I have to use only one APP_INITIALIZER in the main app and not anymore in the remote app? Any suggestions please.