chore: remove Sentry integration
This commit is contained in:
1 parent
c7fb37356e
commit
1f4aadb3d7
21 files changed
+53
-1960
No files matched your search
@@ -1,8 +1,7 @@
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
import { logger } from "@/lib/logger";
|
||||
|
||||
/**
|
||||
* Log unexpected errors and forward them to Sentry when a DSN is configured.
|
||||
* Log unexpected errors through the structured application logger.
|
||||
* Domain errors (validation, auth, etc.) should NOT go through here.
|
||||
*/
|
||||
export function reportError(error: unknown, context = "Unhandled error"): void {
|
||||
@@ -11,8 +10,4 @@ export function reportError(error: unknown, context = "Unhandled error"): void {
|
||||
err: message,
|
||||
name: error instanceof Error ? error.name : undefined,
|
||||
});
|
||||
|
||||
if (process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN) {
|
||||
Sentry.captureException(error);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user