feat(onboarding): Update Next.js onboarding for SDK v11 - #123911
Draft
chargome wants to merge 1 commit into
Draft
Conversation
State the Next.js 14 minimum in the install step, import withSentryConfig from @sentry/nextjs/config in the profiling next.config snippet since the root export is removed in v11, and drop the stale pre-7.57 tracing note and the redundant browserTracingIntegration from the distributed tracing snippet. Fix React/NextJS naming in the performance onboarding. Refs SDK-1435 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012tmtndCp2gfsHQNhQ8hH5i
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the in-product Next.js onboarding for @sentry/nextjs v11.
withSentryConfigfrom@sentry/nextjs/configin the profilingnext.configsnippet, and label the ESM tabnext.config.mjs. The root export is removed in v11. The./configentry point already exists in 10.x, so the snippet also works for users who have not upgraded yet.browserTracingIntegrationfrom the distributed tracing snippet, since the Next.js SDK adds it by default.(js|ts)suffix for the three config file names.Checked and unchanged:
reactComponentAnnotation,enableOpenTelemetrySetupandsendDefaultPiido not appear in this onboarding, the agent monitoring step already targetssentry.server.configonly, and all docs links resolve.closes SDK-1435