microfrontends

Configure and deploy microfrontends on Vercel using microfrontends.json and path-based routing.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill microfrontends-dsgalkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microfrontends
Source: https://github.com/dsgalkar/dnyaneshwar_portfolio/tree/main/.agents/plugins/vercel/skills/microfrontends
Command: npx skills add https://github.com/dsgalkar/dnyaneshwar_portfolio --skill microfrontends-dsgalkar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @vercel/microfrontends, and includes references (resource) components.

What problem does it solve? Splitting a large frontend application into independently deployable units that render as one cohesive app requires complex routing, asset isolation, and local development orchestration. This Skill guides you through building, configuring, and deploying microfrontends on Vercel so multiple teams can ship independently under one domain. ## Core Features & Use Cases - Routing Configuration: Define microfrontends.json with default apps, child apps, path expressions, asset prefixes, and flag-controlled routing handled at Vercel's network layer. - Framework Integration: Wire up Next.js (App and Pages Router), SvelteKit, React Router, or Vite via the @vercel/microfrontends package and its config wrappers. - Local Development Proxy: Run only the microfrontend you are working on while the local proxy routes other paths to production fallbacks, with Turborepo and polyrepo support. - Use Case: A platform team splits a monolithic Next.js app into web, docs, and dashboard projects, configures path routing in microfrontends.json, and uses the CLI (vercel mf create-group, inspect-group, pull) to manage the group across deployments. ## Quick Start Ask the assistant to set up a Vercel microfrontends group and generate a microfrontends.json routing your docs app under the /docs path.

Frequently Asked Questions about microfrontends

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up microfrontends on Vercel?

Create a microfrontends group with `vercel microfrontends create-group`, add a `microfrontends.json` file to the default app defining routing paths, install `@vercel/microfrontends` in every app, and wrap each framework config with `withMicrofrontends` or the Vite plugin before deploying.

How do I configure path routing in microfrontends.json?

Add a `routing` array to each child application with path expressions like `/docs/:path*`. The default app has no routing field and serves unmatched requests. Changes take effect once the config deploys to production.

Does Vercel microfrontends support frameworks besides Next.js?

Yes. SvelteKit is supported via `@vercel/microfrontends/experimental/sveltekit`, and React Router or Vite apps use the `microfrontends()` Vite plugin. However, flag-controlled routing and cross-zone prefetching are currently Next.js only.

How do I run microfrontends locally without starting every app?

Use the local development proxy on port 3024. Run your app's dev server with `next dev --port $(microfrontends port)` and start the proxy with `microfrontends proxy --local-apps <name>`; unmatched apps fall back to their production URLs.

Why are my microfrontend assets returning 404 errors?

Asset 404s usually mean the asset prefix is not routed in `microfrontends.json` or Next.js `public/` files were not moved into a subdirectory matching the prefix. Verify `withMicrofrontends` is applied and the prefix path is included in the routing paths.

How do I control microfrontend routing with feature flags?

Add a `flag` field to a routing group in `microfrontends.json`, then implement `runMicrofrontendsMiddleware` in the default app's Next.js middleware. The matcher must include all flagged paths plus `/.well-known/vercel/microfrontends/client-config`.