Skip to content

Conversation

@logaretm
Copy link
Collaborator

Adds micro frontends guide specific to vercel's microfrontends feature since it has multi-zone application support which doesn't require the use of module federation.

@linear
Copy link

linear bot commented Nov 14, 2025

@vercel
Copy link

vercel bot commented Nov 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Nov 24, 2025 11:06am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Nov 24, 2025 11:06am

@codecov
Copy link

codecov bot commented Nov 14, 2025

Bundle Report

Changes will increase total bundle size by 53.24kB (0.23%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 13.04MB 53.25kB (0.41%) ⬆️
sentry-docs-client-array-push 10.18MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json 17.75kB 907.08kB 2.0%
../app/platform-redirect/page.js.nft.json 17.75kB 907.0kB 2.0%
../app/sitemap.xml/route.js.nft.json 17.75kB 904.23kB 2.0%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
server/middleware-*.js 6.46kB 7.46kB 645.5% ⚠️
server/middleware-*.js -6.46kB 1.0kB -86.59%
static/rBCBpHcYGj1JrDQdkagW6/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/rBCBpHcYGj1JrDQdkagW6/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/CyPQKXyCOBNgzHt5lix7A/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/CyPQKXyCOBNgzHt5lix7A/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Copy link
Collaborator

@inventarSarah inventarSarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey 👋
I haven't reviewed everything yet, but I have a question about the scope of the guide that I need answered before continuing (see my comment).
Thanks!

@@ -0,0 +1,39 @@
---
title: Micro Frontends
description: "Learn how to add Sentry instrumentation to your Vercel's micro frontend projects."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this guide only for Vercel? If so, do we need the detailed content on module federation. As I understand it, Vercel only supports mult-zone apps - please lmk :)

Copy link
Collaborator Author

@logaretm logaretm Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I tried setting one up and it worked, although they don't document it:

https://github.com/vercel-labs/microfrontends-single-spa-module-federation/

It's not in their docs or listed anywhere except their GitHub, so what do you think we should do here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should stick to what's officially supported by Vercel. We can always update and revise if they support both approaches in the future.

I thought about your page a bit over the weekend, and I think the safest approach for users would be to keep the existing shared "Micro Frontends" page for Next.js (the one that is currently live) and add the Vercel multi-zone info as a new section rather than replacing the whole page.
That way, Vercel users and non-Vercel users can find everything in one place

My proposal:
Add the original MF page back under nextjs and add a new section for Vercel multi-zone apps that only shows up for Next.js as the first subsection of the page. You can use the PlatformSection component for this:

<PlatformSection supported={["javascript.nextjs"]}>
## Vercel Multi-Zone Micro Frontends
...
</PlatformSection>

In this new section, we can include a short intro to Vercel multi-zone apps and then reuse/adjust your existing “Multi-zone applications” content to explain how to set up Sentry in that environment.


Let me know if this makes sense!
And I’m more than happy to help with restructuring or integrating the Vercel content so the work you put in fits into the overall page. Just let me know!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on adding this content to the existing page of microfrontends, you can keep a small note on module federation though (helps with search and module federation is well known).

Copy link
Collaborator Author

@logaretm logaretm Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep makes sense! I will make the necessary changes.

EDIT: Done, is that what you folks had in mind?

@logaretm logaretm force-pushed the awad/js-612-test-nextjs-microfrontend-setup branch from 6d6f90e to dc50d67 Compare November 24, 2025 08:26
Copy link
Collaborator

@inventarSarah inventarSarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now, thank you! 🎀

logaretm and others added 4 commits November 24, 2025 11:55
Co-authored-by: Sarah Mischinger <sarah@codingwriter.com>
Co-authored-by: Sarah Mischinger <sarah@codingwriter.com>
Co-authored-by: Sarah Mischinger <sarah@codingwriter.com>
Co-authored-by: Sarah Mischinger <sarah@codingwriter.com>
@logaretm
Copy link
Collaborator Author

logaretm commented Nov 24, 2025

Thanks for the suggestions 🙏 I have applied them and will merge once the CI finishes.

@logaretm logaretm merged commit d2614b4 into master Nov 24, 2025
14 checks passed
@logaretm logaretm deleted the awad/js-612-test-nextjs-microfrontend-setup branch November 24, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants