diff --git a/src/utils/sentry.ts b/src/utils/sentry.ts index f7ae90c..5e2b688 100644 --- a/src/utils/sentry.ts +++ b/src/utils/sentry.ts @@ -1,7 +1,9 @@ import Sentry from "@sentry/node"; +import dotenv from "dotenv"; +dotenv.config(); Sentry.init({ - dsn: "https://a16510e790a3a1bd2421ecb554f91aef@o4510087561412608.ingest.us.sentry.io/4510103140106240", + dsn: (process.env.SENTRY_DSN || ''), // Setting this option to true will send default PII data to Sentry. // For example, automatic IP address collection on events sendDefaultPii: true,