Should I ditch NextJs for MF? Module Federation (MF) with Next.js: Potential for Native Support and Best Practices. #77862
Replies: 12 comments 17 replies
-
|
Beta Was this translation helpful? Give feedback.
-
how is your progress so far? nearly completed? |
Beta Was this translation helpful? Give feedback.
-
Hi, As far as the nextjs-mf won't support after late 2026, how about using vite-plugin-federation for module federation? |
Beta Was this translation helpful? Give feedback.
-
so, do you have any solution for the unsupport of nextjs-mf after late 2026? but it's worth observing the communities' decision. |
Beta Was this translation helpful? Give feedback.
-
I have experience in developing several javascript modules, and I know well how important the support of the community or dev team is. |
Beta Was this translation helpful? Give feedback.
-
Can you provide me with the details of the micro frontend for your project? |
Beta Was this translation helpful? Give feedback.
-
So, do you work alone, or are you leading the team? |
Beta Was this translation helpful? Give feedback.
-
I'm very interested in your project and would like to contribute. |
Beta Was this translation helpful? Give feedback.
-
I'm available on 4/8/2025 from 9 AM to 8 PM. |
Beta Was this translation helpful? Give feedback.
-
Hi, how's it going? |
Beta Was this translation helpful? Give feedback.
-
Hi all. We have a new collaboration with vercel. https://rspack.dev/blog/rspack-next-partner Our bundler landed in 15.3 - so it looks likely that we will make progress on federation now that working relationship is established. Also helps that there's a bundler I've got fully control over that works with next now. No promises. But it does look optimistic |
Beta Was this translation helpful? Give feedback.
-
@areeshalam have you considered using a I'm currently creating a POC for the company that I work, and I'm facing some problems using Next's MF plugin as the host and a Vite application as the remote. I can't simply choose to remove Next from there because it would be a life time migration right now, and many teams depend on it too. The biggest advantage of using the script tag approach is speed and simplicity. It's just JS + HTML. It has some downsides like any architectural decisions (performance for example), for my case at least, I just needed to render some simple UI detached from the main app, and that's it. It shouldn't require a lot of magic to make it work.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Next.js devs,
I’m working on a large-scale social network platform (a potential one) and I’m exploring microfrontend (MF) architecture for my frontend to allow multiple teams to collaborate and scale independently. I’ve considered Next.js for its excellent developer experience, SSR, and static site generation, but I’m facing a dilemma regarding the integration of module federation.
Background:
My Questions:
1. Is there any plan for official module federation (MF) support in Next.js?
I understand that Next.js provides a solid architecture for building single applications but integrating multiple microfrontends might require specific features like MF. Are there any discussions or plans about adding MF support natively to Next.js?
2. What is the recommended approach for integrating MF into a Next.js project?
If I want to implement MF with Next.js (either now or in the future), what tools or best practices do you recommend for achieving this? Should I rely on Webpack or Vite for MF, and how can I integrate that cleanly with Next.js?
3. How should I handle scalability and independent deployment of microfrontends in Next.js?
My project will grow significantly, and I’m looking for a way to scale it as independently as possible. Would Next.js’ current routing and layout system be a bottleneck, or is it possible to maintain clean modularity with Next.js while using MF?
4. Hybrid Approach with Next.js & MF:
Would it be feasible to use a hybrid approach where Next.js handles certain pages/routes, and MF is used for specific, isolated parts of the app? How would this work in practice, and what trade-offs should I consider?
5. Is Next.js suitable for a microfrontend architecture?
From your experience, is Next.js a good candidate for projects heavily relying on microfrontends, or would a different framework (like Vite or a Webpack-based solution) be a better fit for scaling multiple teams and micro-applications?
I appreciate any insights or experiences you can share, especially regarding module federation integration with Next.js.
Thanks in advance!
@ScriptedAlchemy
Beta Was this translation helpful? Give feedback.
All reactions