Skip to content

Commit 7cff7e6

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

File tree

2 files changed

+15668
-5054
lines changed

2 files changed

+15668
-5054
lines changed

apps/nextjs-13_2_0/instrumentation.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
export async function register() {
2-
if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') {
2+
if (process.env.NEXT_RUNTIME === 'nodejs') {
33
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
4+
}
5+
6+
if (process.env.NEXT_RUNTIME === 'edge') {
7+
await import('./sentry.edge.config');
58
}
69
}

0 commit comments

Comments
 (0)