Labsco
vercel logo

microfrontends

โ˜… 209

by vercel-labs ยท part of vercel-labs/vercel-plugin

Guide for building, configuring, and deploying microfrontends on Vercel. Use this skill when the user mentions microfrontends, multi-zones, splitting an app across teams, independent deployments, cross-app routing, incremental migration, composing multiple frontends under one domain, microfrontends.json, @vercel/microfrontends, the microfrontends local proxy, or path-based routing between Vercel projects. Also use when the user asks about shared layouts across projects, navigation between microf

๐Ÿ”Œ This skill ships inside the vercel plugin โ€” install the plugin and you also get 5 slash commands, 3 sub-agents, hooks, an MCP server.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

Vercel Microfrontends

Split a large application into independently deployable units that render as one cohesive app. Vercel handles routing on its global network using microfrontends.json.

Core concepts: default app (has microfrontends.json, serves unmatched requests) ยท child apps (have routing path patterns) ยท asset prefix (prevents static-asset collisions) ยท independent deployments.

Frameworks: Next.js (App Router + Pages Router), SvelteKit, React Router, Vite โ€” all via @vercel/microfrontends.

CLI (vercel microfrontends / vercel mf):

  • create-group โ€” create a new group; interactive by default, or fully non-interactive with --non-interactive (options: --name, --project (repeatable), --default-app, --default-route, --project-default-route (repeatable, format: <project>=<route>, required for each non-default project in non-interactive mode), --yes to skip confirmation prompt); note: --non-interactive is blocked if adding the projects would exceed the free tier limit โ€” the user must confirm billing changes interactively
  • add-to-group โ€” add the current project to an existing group; requires interactive terminal (options: --group, --default-route)
  • remove-from-group โ€” remove the current project from its group; requires interactive terminal (option: --yes skips project-link prompt only)
  • delete-group โ€” delete a group and all its settings, irreversible; requires interactive terminal (option: --group to pre-select group)
  • inspect-group โ€” retrieve group metadata (project names, frameworks, git repos, root dirs); useful for automating setup (options: --group, --format=json, --config-file-name)
  • pull โ€” pull remote microfrontends.json for local development (option: --dpl)
  • microfrontends proxy โ€” local dev proxy ยท microfrontends port โ€” print auto-assigned port

Finding Detailed Information

This skill includes detailed reference docs in the references/ directory. Do not read all references upfront. Instead, search or grep the relevant file when the user asks about a specific topic:

TopicReference file
Getting started, quickstart, framework setup, microfrontends.json schema, fields, naming, examplesreferences/configuration.md
Path expressions, asset prefixes, flag-controlled routing, middlewarereferences/path-routing.md
Local proxy setup, polyrepo config, Turborepo, ports, deployment protectionreferences/local-development.md
Inspecting groups (inspect-group), adding/removing projects, fallback environments, navigation, observabilityreferences/managing-microfrontends.md
Testing utilities (validateMiddlewareConfig, validateRouting, etc.), debug headers, common issuesreferences/troubleshooting.md
Deployment protection, Vercel Firewall, WAF rules for microfrontendsreferences/security.md

When the user asks about a specific topic, use grep or search over the relevant reference file to find the answer without loading all references into context.