Skip to content
Docs

Microfrontends

Microfrontends allow you to split a single application into smaller, independently deployable units that render as one cohesive application for users. Different teams using different technologies can develop, test, and deploy each microfrontend while Vercel handles connecting the microfrontends and routing requests on the global network.

They are valuable for:

  • Improved developer velocity: You can split large applications into smaller units, improving development and build times.
  • Independent teams: Large organizations can split features across different teams, with each team choosing their technology stack, framework, and development lifecycle.
  • Incremental migration: You can gradually migrate from legacy systems to modern frameworks without rewriting everything at once.

Microfrontends may add additional complexity to your development process. To improve developer velocity, consider alternatives like:

Microfrontends work the same whether you keep your applications in one repository (a monorepo) or spread them across several (a polyrepo). The microfrontends group, path routing, and production routing behave identically in both cases. Each application is its own Vercel project and deploys on its own, no matter where its code lives.

The layout you choose affects how each application finds the microfrontends.json configuration, both during local development and when it builds on Vercel:

TaskMonorepoPolyrepo
Finding microfrontends.jsonVercel detects it automaticallyPull it with the Vercel CLI or set VC_MICROFRONTENDS_CONFIG
Running the local proxyStarts automatically with Turborepo, or run the scriptRun the proxy script in the repository you're working in
Running multiple apps togetherTurborepo can run every app at onceStart each app in its own repository

In a monorepo, every application can locate the shared microfrontends.json automatically. In a polyrepo, the configuration lives in only one repository, so each other application needs its own access to it. This applies at build time as well as locally: a polyrepo application whose build can't find microfrontends.json fails with a build error. Pull the configuration into the application with vercel microfrontends pull or set VC_MICROFRONTENDS_CONFIG. See Polyrepo setup.

Choose the layout that fits how your teams already work. For the setup steps in each case, see Test your microfrontends locally.

To make the most of your microfrontend experience, install the Vercel Toolbar.

Want to talk to our team?

Microfrontends help large teams move faster.

Once you have configured the basic structure of your microfrontends,

Teams on all plans can use microfrontends support with plan-specific limits. Hobby and Pro include two microfrontend projects. Pro teams can add more projects, and Vercel bills Pro teams for routed requests as shown below. Enterprise pricing is custom.

HobbyProEnterprise
Included Microfrontends Routing50K requests / monthN/ACustom
Additional Microfrontends Routing-$2 per 1M requestsCustom
Included Microfrontends Projects2 projects2 projectsCustom
Additional Microfrontends Projects-$250/project/monthCustom

Microfrontends usage can be viewed in the Vercel Delivery Network section of Usage section in the sidebar in the Vercel dashboard.


Was this helpful?

supported.