From a09cbb5d2d35a075895ae6cef2e607367317baa5 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Fri, 31 Jan 2025 08:34:36 -0800 Subject: [PATCH] Disable Sentry --- apps/web/src/instrumentation.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/web/src/instrumentation.ts b/apps/web/src/instrumentation.ts index 10aaacea3..764a05a98 100644 --- a/apps/web/src/instrumentation.ts +++ b/apps/web/src/instrumentation.ts @@ -1,9 +1,10 @@ -export async function register() { - if (process.env.NEXT_RUNTIME === "nodejs") { - await import("../sentry.server.config"); - } +// TODO: Sentry breaks Next.js, sigh. +// 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"); - } -} +// if (process.env.NEXT_RUNTIME === "edge") { +// await import("../sentry.edge.config"); +// } +// }