From 57b022f59dc65ba17706e5874e8fd709611ee9a0 Mon Sep 17 00:00:00 2001 From: Tom Sherman Date: Thu, 28 Nov 2024 13:22:01 +0000 Subject: [PATCH] Remove instrumentation --- packages/frontpage/instrumentation.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 packages/frontpage/instrumentation.ts diff --git a/packages/frontpage/instrumentation.ts b/packages/frontpage/instrumentation.ts deleted file mode 100644 index 7cbe93c1..00000000 --- a/packages/frontpage/instrumentation.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as Sentry from "@sentry/nextjs"; - -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"); - } -} - -export const onRequestError = Sentry.captureRequestError;