Skip to content
Closed
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions apps/nextjs-14_2_1/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as Sentry from '@sentry/nextjs';

export function register() {
if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') {
Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
includeLocalVariables: true,
tunnel: `http://localhost:3031/`, // proxy server
tracesSampleRate: 1,
});
}
}
4 changes: 3 additions & 1 deletion apps/nextjs-14_2_1/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { withSentryConfig } from '@sentry/nextjs';

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
experimental: { instrumentationHook: true },
};

export default withSentryConfig(nextConfig);
2 changes: 1 addition & 1 deletion apps/nextjs-14_2_1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@sentry/nextjs": "7.110.1",
"@sentry/nextjs": "8.0.0-beta.1",
"next": "14.2.1",
"react": "^18",
"react-dom": "^18"
Expand Down
9 changes: 0 additions & 9 deletions apps/nextjs-14_2_1/sentry.server.config.ts

This file was deleted.

806 changes: 514 additions & 292 deletions payload-files/nextjs-14_2_1/route-handlers/_api_test-error--event.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading