Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): add example remote override to prod mfe (#9703)
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 15 additions & 1 deletion
16
packages/angular/src/generators/setup-mfe/files/webpack/webpack.prod.config.js__tmpl__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
module.exports = require('./webpack.config'); | ||
const { withModuleFederation } = require('@nrwl/angular/module-federation'); | ||
const config = require('./mfe.config'); | ||
module.exports = withModuleFederation({ | ||
...config, | ||
/* | ||
* Remote overrides for production. | ||
* Each entry is a pair of an unique name and the URL where it is deployed. | ||
* | ||
* e.g. | ||
* remotes: [ | ||
* ['app1', 'https://app1.example.com'], | ||
* ['app2', 'https://app2.example.com'], | ||
* ] | ||
*/ | ||
}); |