#How to load remote MFE dynamically in runtime - React

3 messages · Page 1 of 1 (latest)

hollow wing
vast hawk
#

in the remote apps, you gotta expose your app in the vite.config.ts and set port in the package.json

and in the host, in vite.config.ts, you initialize that the port is from remote

hollow wing
#

Yes @vast hawk thanks for your reply, but I'm done with the remote and host side setups.

I'm able to load my remote app in the host (Shell) and it works fine. But when my remote goes down, it's affecting the host(Shell) and the whole app goes down.

The issue is, I need to render my remote app on demand basis, which means I need to load my remote app dynamically. When the connected remote goes down it should not affect my shell.

Let me know your reviews on this