We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fbd584 commit 7cff7e6Copy full SHA for 7cff7e6
apps/nextjs-13_2_0/instrumentation.ts
@@ -1,6 +1,9 @@
1
export async function register() {
2
- if (process.env.NEXT_RUNTIME === 'nodejs' || process.env.NEXT_RUNTIME === 'edge') {
+ if (process.env.NEXT_RUNTIME === 'nodejs') {
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
+ }
5
+
6
+ if (process.env.NEXT_RUNTIME === 'edge') {
7
+ await import('./sentry.edge.config');
8
}
9
0 commit comments