Skip to content

Commit 3fbd584

Browse files
committed
feat(nextjs): Upgrade sentry to v8
1 parent 2604a27 commit 3fbd584

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

apps/nextjs-13_2_0/instrumentation.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import * as Sentry from '@sentry/nextjs';
2-
3-
export function register() {
1+
export async function register() {
42
if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') {
5-
Sentry.init({
6-
environment: 'qa', // dynamic sampling bias to keep transactions
7-
dsn: process.env.E2E_TEST_DSN,
8-
includeLocalVariables: true,
9-
tunnel: `http://localhost:3031/`, // proxy server
10-
tracesSampleRate: 1,
11-
});
3+
await import('./sentry.server.config');
4+
// You can also import a `sentry.edge.config` file if you need to have a different configuration for Edge Functions
125
}
136
}

apps/nextjs-13_2_0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@sentry/nextjs": "8.0.0-beta.1",
12+
"@sentry/nextjs": "8.9.2",
1313
"@types/node": "20.12.7",
1414
"@types/react": "18.2.79",
1515
"@types/react-dom": "18.2.25",

0 commit comments

Comments
 (0)