This example demonstrates how to use @vercel/microfrontends with Next.js App Router for building a microfrontend application. It showcases how to create a multi-zone architecture using the @vercel/microfrontends
package, allowing you to load different microfrontends in different zones of your application.
-
Clone the repository:
git clone https://github.com/vercel-labs/microfrontends-nextjs-app-multi-zone.git
-
Navigate to the project directory:
cd microfrontends-nextjs-app-multi-zone
-
Install the dependencies:
pnpm install
-
Start the development server:
npm dev
-
Open your browser and navigate to
http://localhost:3024
to see the microfrontend application in action.