Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Removes Sentry from the packages/docs Next.js app to reduce dependency surface area and eliminate inactive instrumentation/config that was previously gated behind env flags.
Changes:
- Removes
@sentry/nextjsusage from runtime (instrumentation hooks, global error capture, trace metadata, and ad-hoc exception reporting). - Simplifies
next.config.mjsby droppingwithSentryConfigand related build/source-map/debug-id settings. - Updates
package.json,turbo.json, andpnpm-lock.yamlto fully remove Sentry and its transitive dependency tree.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Removes Sentry packages and a large set of transitive deps from the lockfile. |
| packages/docs/turbo.json | Drops Sentry-related env vars from Turbo task environment passthrough. |
| packages/docs/src/instrumentation.ts | Deletes server/edge instrumentation registration tied to Sentry. |
| packages/docs/src/instrumentation-client.ts | Deletes client-side Sentry initialization. |
| packages/docs/src/app/playground/(demos)/_components/source-on-github.tsx | Removes Sentry exception capture; retains console logging + null fallback. |
| packages/docs/src/app/layout.tsx | Removes Sentry trace metadata injection from Metadata. |
| packages/docs/src/app/global-error.tsx | Removes Sentry error capture side-effect; keeps status code rendering. |
| packages/docs/sentry.server.config.ts | Deletes Sentry server config. |
| packages/docs/sentry.edge.config.ts | Deletes Sentry edge config. |
| packages/docs/package.json | Removes @sentry/nextjs and related dev deps. |
| packages/docs/next.config.mjs | Removes Sentry build wrapper/config and exports plain Fumadocs MDX config. |
| packages/docs/.gitignore | Removes .sentryclirc ignore entry. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
It had been disabled for a while (didn't work well with Turbopack), trimming down to reduce dependencies & supply chain attack vectors (in response to the Vercel hack of 2026-04-19).