Menu

A nextjs-mf alternative for the Next.js App Router
📰

A nextjs-mf alternative for the Next.js App Router

DEV Community: react·Tariq Khan·about 5 hours ago
#IQFDiX5i
#devtoreact#devto#dev#next#host
Long article (562 words) — no AI summary yet.
Reading 0:00
15s threshold

Imagine a SaaS dashboard with a usage panel that another team owns. Today it runs in a Pages Router app. The dashboard team is building a new workspace settings page in app/ , and the usage team wants to ship the same panel to both places. Can it keep deploying on its own schedule while the dashboard moves to the App Router?

That's the question I built next-federation around. The old @module-federation/nextjs-mf integration relied on local webpack, supported the Pages Router, and is marked deprecated upstream. If you depended on it, moving a page to app/ leaves a practical gap. You still need to load the remote, decide where it renders, and keep the surrounding Next.js page working when it fails. Upstream integration docs

What changed in the host

With next-federation , the usage team builds its panel as a separate Vite remote that exposes a Module Federation 2.0 component. The Next.js host uses its normal Turbopack or webpack build.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.