From 10840489cdf44655e13d7c90a8d971ad43fef1da Mon Sep 17 00:00:00 2001 From: MylowMntr Date: Sun, 13 Sep 2026 11:27:20 +0200 Subject: [PATCH] Use environment variable for Sentry DSN Avoid IA spamming... --- src/utils/sentry.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,