Dynamic Remotes #701
Unanswered
FaizanMuhammadSE
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with Microfrontends (MFEs) using React + Vite + vite-federation-plugin.
I have:
Each MFE is built once and deployed to multiple environments (DEV, STAGE, PROD). The remoteEntry.js files are hosted at different base URLs depending on the environment.
❓ Challenge
In the container app, I need to define the remote MFE URLs like this:
But since
VITE_ABC_BASE_URL
changes per environment, I don't want to create separate builds of the container app for each environment.🧠 Goal
How can I manage these dynamic base URLs efficiently without rebuilding the container app for every environment?
Beta Was this translation helpful? Give feedback.
All reactions