Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,11 @@ const handleRequest = Sentry.createSentryHandleRequest({

export default handleRequest;

export const handleError: HandleErrorFunction = (error, { request }) => {
// React Router may abort some interrupted requests, don't log those
if (!request.signal.aborted) {
Sentry.captureException(error);
// optionally log the error to the console so you can see it
console.error(error);
}
};`;
export const handleError = Sentry.createSentryHandleError({
logErrors: false
});

// ... rest of your server entry`;

const getVerifySnippet = (params: DocsParams) => {
const logsCode = params.isLogsSelected
Expand Down Expand Up @@ -303,7 +300,7 @@ export const onboarding: OnboardingConfig = {
'To upload source maps to Sentry, follow the [link:instructions in our documentation].',
{
link: (
<ExternalLink href="https://docs.sentry.io/platforms/javascript/guides/react-router/#source-maps-upload" />
<ExternalLink href="https://docs.sentry.io/platforms/javascript/guides/react-router/#step-3-add-readable-stack-traces-with-source-maps-optional" />
),
}
),
Expand Down
Loading