Would it be possible to load the bundles on the server side? Or maybe just inline js and css instead of links? If so, rendering could be faster/smoother. Also, would this make server side rendering possible for the micro-frontends?
Look into dynamic import
Alternatively, or in addition to, look into using dynamic import: https://v8.dev/features/dynamic-import. This will require CORS setup for the MFEs though. And how would that work with client-side/server-side rendering?
Add a vercel.json file in the root directory of your existing Node.js project
In that vercel.json file, enable CORS: https://vercel.com/guides/how-to-enable-cors. Allow https://mfe-shell-ten.vercel.app or maybe * to avoid issues when using http://127.0.0.1:1970?
Would it be possible to load the bundles on the server side? Or maybe just inline js and css instead of links? If so, rendering could be faster/smoother. Also, would this make server side rendering possible for the micro-frontends?
Look into dynamic import
Alternatively, or in addition to, look into using dynamic
import
: https://v8.dev/features/dynamic-import. This will require CORS setup for the MFEs though. And how would that work with client-side/server-side rendering?vercel.json
file in the root directory of your existing Node.js projectvercel.json
file, enable CORS: https://vercel.com/guides/how-to-enable-cors. Allowhttps://mfe-shell-ten.vercel.app
or maybe*
to avoid issues when usinghttp://127.0.0.1:1970
?