Skip to content

Commit

Permalink
add instrumentation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Jun 18, 2024
1 parent 9f32744 commit 984c8e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await import('../sentry.server.config');
}

if (process.env.NEXT_RUNTIME === 'edge') {
await import('../sentry.edge.config');
}
}

0 comments on commit 984c8e3

Please sign in to comment.