Menu

1 / 2

How to try Next Federation with the Next.js App Router

DEV Community: nextjs·Tariq Khan·about 5 hours ago
#RXYjRTW9
#devtonextjs#devto#dev#remote#host
Long article (438 words) — no AI summary yet.
Reading 0:00
15s threshold

Tariq Khan

Posted on Dec 6

Edited on Dec 6

AI-assisted

The fastest way to understand Next Federation is to run a host and a remote side by side, then edit the remote and see where the change appears. The repository has that setup wired already. Here's how to run it and where to look before adapting it to your app.

Start the examples

You'll need Node 24 or newer and pnpm 10 for this repository's workspace. From a new checkout, run:

git clone https://github.com/tariqule/next-federation.git cd next-federation pnpm install pnpm build pnpm examples:dev

Enter fullscreen mode

Exit fullscreen mode

Open the App Router host . The runner also starts a Pages Router host and the two remotes. It generates local demo keys if they're missing and builds the Module Federation components remote. The scripts and source are in the examples directory .

Follow one island from its config to the page

The Vite remote in examples/vite-remote exposes an island named ProductPanel .…

Continue reading — create a free account

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