Skip to content

Commit

Permalink
fix: downgrade sentry version...
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Oct 16, 2024
1 parent dc0474a commit 8239e9e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 597 deletions.
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@fastify/type-provider-typebox": "^4.0.0",
"@prisma/client": "^4.8.1",
"@react-pdf/renderer": "^3.4.2",
"@sentry/node": "^8.34.0",
"@sentry/node": "^7.70.0",
"@sinclair/typebox": "^0.32.20",
"date-fns": "^3.6.0",
"debug": "^4.3.4",
Expand Down
17 changes: 11 additions & 6 deletions packages/backend/src/features/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// const Sentry = require("@sentry/node");
import Sentry from "@sentry/node";
import { ENV, isDev } from "../envVars";

export const sentry = isDev ? null : null;
// Sentry.init({
// dsn: ENV.SENTRY_DSN,
// tracesSampleRate: 1.0,
// });
isDev
? null
: Sentry.init({
dsn: ENV.SENTRY_DSN,
tracesSampleRate: 1.0,
});

const sentry = isDev ? null : Sentry;

export { sentry };
Loading

0 comments on commit 8239e9e

Please sign in to comment.