Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR improves error reporting by integrating Sentry into the application, with updates to error handling and build configuration.
- In vite.config.ts, the Sentry Vite plugin is conditionally added based on environment variables.
- In src/main.tsx and instrument.ts, Sentry is initialized to capture app errors.
- The package.json and GitHub workflow configuration are updated to include required dependencies and environment variables for Sentry.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Added conditional injection of the Sentry Vite plugin with a spread operator. |
| src/main.tsx | Imported Sentry and an instrumentation module to initialize error reporting. |
| src/instrument.ts | New file initializing Sentry when a DSN is provided via URL parameters. |
| package.json | Added Sentry dependencies and removed react-error-boundary. |
| .github/workflows/subworkflow-build.yml | Updated environment variable handling and build command to conditionally disable Sentry release. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
|
Build for commit b2ae736 deployed to: https://nutshell-pr-46.ci.next.deskprodemo.com URLs: |
AFOJ
approved these changes
Jun 16, 2025
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.
This PR improves error reporting for apps by integrating Sentry. It includes the necessary configurations and updates to the main.tsx file to handle errors effectively.