nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.66k stars 2.36k forks source link

Override MFE remote configuration #19693

Closed csutorasr closed 6 months ago

csutorasr commented 1 year ago

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.

csutorasr commented 1 year 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.

github-actions[bot] commented 5 months ago

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.