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
4 changes: 2 additions & 2 deletions packages/react-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
Create an `instrument.server.mjs` file in the root of your app:

```js
import * as Sentry from '@sentry/node';
import * as Sentry from '@sentry/react-router';

Sentry.init({
dsn: '___PUBLIC_DSN___',
Expand All @@ -118,7 +118,7 @@ Sentry.init({
In your `entry.server.tsx` file, export the `handleError` function:

```tsx
import * as Sentry from '@sentry/node';
import * as Sentry from '@sentry/react-router';
import { type HandleErrorFunction } from 'react-router';

export const handleError: HandleErrorFunction = (error, { request }) => {
Expand Down
Loading