Skip to content

Commit df92ff1

Browse files
committed
.
1 parent 06b0795 commit df92ff1

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
import * as Sentry from '@sentry/nextjs';
1+
export async function register() {
2+
if (process.env.NEXT_RUNTIME === 'nodejs') {
3+
await import('./sentry.server.config');
4+
}
25

3-
export function register() {
4-
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.NEXT_PUBLIC_E2E_TEST_DSN,
8-
tunnel: `http://localhost:3031/`, // proxy server
9-
tracesSampleRate: 1.0,
10-
sendDefaultPii: true,
11-
transportOptions: {
12-
// We are doing a lot of events at once in this test
13-
bufferSize: 1000,
14-
},
15-
});
6+
if (process.env.NEXT_RUNTIME === 'edge') {
7+
await import('./sentry.edge.config');
168
}
179
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as Sentry from '@sentry/nextjs';
2+
3+
Sentry.init({
4+
environment: 'qa', // dynamic sampling bias to keep transactions
5+
dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN,
6+
tunnel: `http://localhost:3031/`, // proxy server
7+
tracesSampleRate: 1.0,
8+
sendDefaultPii: true,
9+
transportOptions: {
10+
// We are doing a lot of events at once in this test
11+
bufferSize: 1000,
12+
},
13+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as Sentry from '@sentry/nextjs';
2+
3+
Sentry.init({
4+
environment: 'qa', // dynamic sampling bias to keep transactions
5+
dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN,
6+
tunnel: `http://localhost:3031/`, // proxy server
7+
tracesSampleRate: 1.0,
8+
sendDefaultPii: true,
9+
transportOptions: {
10+
// We are doing a lot of events at once in this test
11+
bufferSize: 1000,
12+
},
13+
});

0 commit comments

Comments
 (0)