AIdentity

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

instrumentation.ts (326B)


      1 import * as Sentry from '@sentry/nextjs';
      2 
      3 export async function register() {
      4   if (process.env.NEXT_RUNTIME === 'nodejs') {
      5     await import('./sentry.server.config');
      6   }
      7 
      8   if (process.env.NEXT_RUNTIME === 'edge') {
      9     await import('./sentry.edge.config');
     10   }
     11 }
     12 
     13 export const onRequestError = Sentry.captureRequestError;