Skip to content

Commit

Permalink
Disable Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jan 31, 2025
1 parent b2b7316 commit a09cbb5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions apps/web/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -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");
// }
// }

0 comments on commit a09cbb5

Please sign in to comment.