Skip to content

Commit

Permalink
Revert "Disable Sentry"
Browse files Browse the repository at this point in the history
This reverts commit a09cbb5.
  • Loading branch information
dcramer committed Jan 31, 2025
1 parent a09cbb5 commit effd912
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions apps/web/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// TODO: Sentry breaks Next.js, sigh.
// export async function register() {
// if (process.env.NEXT_RUNTIME === "nodejs") {
// await import("../sentry.server.config");
// }
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 effd912

Please sign in to comment.