Closed csutorasr closed 6 months ago
Example configuration:
"skip-remote1": {
"browserTarget": "host:build:development",
"skipRemotes": ["remote1"],
"devRemotes": ["remote2"]
}
Currently you get this error if you don't create an empty configuration with the same name, after running nx serve host:skip-remote1
Remotes not served automatically: remote1
throw new Error(`Configuration '${configuration}' is not set in the workspace.`);
^
Error: Configuration 'skip-remote1' is not set in the workspace.
This is because remote2
has no configuration for skip-remote1
only production
and development
.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Description
The Angular MFE server passes the configuration to the remotes which cannot be overridden.
Motivation
If this can be changed there are no need to create empty configuration in the remotes.
Suggested Implementation
Allow the
devRemotes
to be an object and override the configuration.