Skip to content

Commit 939e783

Browse files
authored
Merge pull request #24 from getsentry/sig/remix-v8
feat: Update Remix 2 to v8
2 parents 3ebf6f6 + c8eb3ca commit 939e783

16 files changed

+3643
-2670
lines changed

apps/remix/app/entry.server.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
import * as Sentry from '@sentry/remix';
2+
3+
Sentry.init({
4+
environment: 'qa', // dynamic sampling bias to keep transactions
5+
dsn: process.env.SENTRY_DSN,
6+
includeLocalVariables: true,
7+
tunnel: `http://localhost:3031/`, // proxy server
8+
tracesSampleRate: 1,
9+
});
10+
111
/**
212
* By default, Remix will handle generating the HTTP Response for you.
313
* You are free to delete this file if you'd like to, but if you ever want it revealed again, you can run `npx remix reveal` ✨
@@ -11,15 +21,6 @@ import { createReadableStreamFromReadable } from '@remix-run/node';
1121
import { RemixServer, useLocation, useMatches } from '@remix-run/react';
1222
import { isbot } from 'isbot';
1323
import { renderToPipeableStream } from 'react-dom/server';
14-
import * as Sentry from '@sentry/remix';
15-
16-
Sentry.init({
17-
environment: 'qa', // dynamic sampling bias to keep transactions
18-
dsn: process.env.SENTRY_DSN,
19-
includeLocalVariables: true,
20-
tunnel: `http://localhost:3031/`, // proxy server
21-
tracesSampleRate: 1,
22-
});
2324

2425
export const handleError = Sentry.wrapRemixHandleError;
2526

apps/remix/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@remix-run/node": "^2.8.1",
1515
"@remix-run/react": "^2.8.1",
1616
"@remix-run/serve": "^2.8.1",
17-
"@sentry/remix": "7.110.1",
17+
"@sentry/remix": "8.9.2",
1818
"isbot": "^4.1.0",
1919
"react": "^18.2.0",
2020
"react-dom": "^18.2.0"

0 commit comments

Comments
 (0)