The project I'm working on uses dynamic remote containers like these https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers
I'm using the vite-plugin-federation
Need to implement this , please anyone help me
3 messages · Page 1 of 1 (latest)
The project I'm working on uses dynamic remote containers like these https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers
I'm using the vite-plugin-federation
Need to implement this , please anyone help me
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
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