-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(nextjs): Support instrumentation-client.ts
#15705
Conversation
incomingUserNextConfigObject.experimental = { | ||
clientInstrumentationHook: true, | ||
...incomingUserNextConfigObject.experimental, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like setting this option even though it does not exist yet does not cause any warnings for whatever reason. This seems to be different from other experiments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Ref: #8105
This PR prepares the SDK for Next.js client instrumentation support which was added in Next.js
15.3.0-canary.8
: https://nextjs.org/docs/app/api-reference/config/next-config-js/clientInstrumentationHookinstrumentation-client.ts
for older Next.js versions. This allows users to migrate without having to bump Next.js version.instrumentation-client.ts