Next.js Discord

Discord Forum

Next 15 SSR micro-frontend

Unanswered
Ahsan posted this in #help-forum
Open in Discord
My microservice currently running fine in react. What I am doing is that I am building the app with parcel and embedding that bundled react app in the head tag as script tag then I am loading data in div with specific class as dangrouslyInnerHTML.

there are two constraints in the microservice:

1.The data is dynamic and it required hydration like clicking on button will fetch the data from the API

2. I can't use iframe because iframe is not SEO friendly as per google said.

Now all the things are with the CSR but I need to shift that MF to SSR which also beneficiary in my case because it would be a publicly available widget.

I have also go through multi-zones but thats only supports a single domain. But, mymicroservice can be embed into any next application with a different domain too. I can't use module fedaration because I am working with Next 15. Please let me know if anyone has any solution regarding it?

0 Replies