Repository navigation
Advantages of microfrontends.json over using Next rewrites?
#11202
SummaryI think the title covers it - we use Next rewrites for our microfrontends right now, are there any major advantages to switching to the new Additional informationNo response ExampleNo response |
Replies: 1 comment
|
They solve different layers, so it's less "switch from rewrites" and more "what do you want your local dev to look like": The key distinction: Turborepo's built-in What you gain locally:
If you're on Vercel: when TL;DR
Docs: https://turborepo.dev/docs/guides/microfrontends#integrating-with-production |
They solve different layers, so it's less "switch from rewrites" and more "what do you want your local dev to look like":
The key distinction: Turborepo's built-in
microfrontends.jsonproxy is local dev only. Nextrewritesrun in production. So if you're not deploying on Vercel, you'll still need rewrites (or an edge/reverse proxy) in prod either way.What you gain locally:
localhost:3024) sits in front of all apps and routes by path, so you can run just the zone you're working on. If the other apps' routes sti…