Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

chore: trim comments in Sentry instrumentation

Andrejfddbb150fe15
diff --git a/apps/api/src/instrument.ts b/apps/api/src/instrument.ts
index 6edea47ec..13cbce55e 100644
--- a/apps/api/src/instrument.ts
+++ b/apps/api/src/instrument.ts
@@ -5,8 +5,6 @@ const tracesSampleRate = Number.parseFloat(
process.env.SENTRY_TRACES_SAMPLE_RATE ?? "",
);
-// The monorepo root package.json sits three levels up from both src/ (dev)
-// and dist/ (the esbuild bundle), locally and in the Docker image.
function readAppVersion() {
try {
const pkg = JSON.parse(
diff --git a/apps/web/src/instrument.ts b/apps/web/src/instrument.ts
index 108458575..d5e167a7f 100644
--- a/apps/web/src/instrument.ts
+++ b/apps/web/src/instrument.ts
@@ -2,8 +2,7 @@ import * as Sentry from "@sentry/react";
const dsn = import.meta.env.VITE_SENTRY_DSN;
-// In Docker builds the DSN is the literal "KANEO_SENTRY_DSN" placeholder until
-// env.sh substitutes it at container start; skip init if it was never replaced.
+// skip init if env.sh never replaced the "KANEO_SENTRY_DSN" placeholder
if (dsn && !dsn.startsWith("KANEO_")) {
Sentry.init({
dsn,