Skip to content

How to add a main remote entry for a monorepo of remote apps? #2027

Answered by ScriptedAlchemy
felipeloge asked this question in Q&A
Discussion options

You must be logged in to vote

To re-map remotes or change the request, you can use the beforeRequest hook:
You can see the full example here: https://github.com/module-federation/module-federation-examples/tree/master/runtime-plugins/remote-router

/**
 * Remote Router Runtime Plugin for Module Federation
 * -------------------------------------------------
 * This plugin extends the capabilities of the module federation runtime by customizing the behavior of the application at runtime.
 *
 * Functionality:
 * 1. The plugin provides several hooks to customize the behavior of the application at runtime.
 * 2. It handles the loading of remote microfrontends and provides a way to handle errors that may occur during this p…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by felipeloge
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants