Skip to content

feat(nextjs): Ensure all packages we auto-instrument are externalized #16552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 11, 2025

So they can be instrumented by us.

I think this should be fine and not really affect users, hopefully, since Next.js itself also does this already for common packages.

Closes #16550

@mydea mydea self-assigned this Jun 11, 2025
@@ -229,6 +258,10 @@ function getFinalConfigObject(

return {
...incomingUserNextConfigObject,
serverExternalPackages: [
Copy link
Member

Choose a reason for hiding this comment

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

m: before v15.0.0 this was called serverComponentsExternalPackages, we probably want to make this version dependant 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

argh! Can you just push this change on top of this branch?

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.

Add all packages we auto-instrument to serverExternalPackages
4 participants