webtools

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

instrumentation.ts (327B)


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