Initial commit
This commit is contained in:
9
skills/sentry-and-otel-setup/assets/instrumentation.ts
Normal file
9
skills/sentry-and-otel-setup/assets/instrumentation.ts
Normal file
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user