Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/web/instrumentation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import * as Sentry from "@sentry/nextjs";

// Only enable Sentry on boardsesh.com to avoid polluting error tracking
// Check hostname to ensure we don't send errors from localhost or preview deployments
const isProductionDomain =
typeof window !== "undefined" &&
window.location.hostname.includes("boardsesh.com");
window.location.hostname === "boardsesh.com";

Sentry.init({
dsn: "https://f55e6626faf787ae5291ad75b010ea14@o4510644927660032.ingest.us.sentry.io/4510644930150400",
Expand Down
5 changes: 4 additions & 1 deletion packages/web/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import * as Sentry from "@sentry/nextjs";

// Only enable Sentry on production deployments to avoid polluting error tracking
const isProductionDomain = process.env.VERCEL_ENV === "production";
// Check both NODE_ENV and VERCEL_ENV to ensure we don't send errors from local dev or preview deployments
const isProductionDomain =
process.env.NODE_ENV === "production" &&
process.env.VERCEL_ENV === "production";

Sentry.init({
dsn: "https://f55e6626faf787ae5291ad75b010ea14@o4510644927660032.ingest.us.sentry.io/4510644930150400",
Expand Down
5 changes: 4 additions & 1 deletion packages/web/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import * as Sentry from "@sentry/nextjs";

// Only enable Sentry on production deployments to avoid polluting error tracking
const isProductionDomain = process.env.VERCEL_ENV === "production";
// Check both NODE_ENV and VERCEL_ENV to ensure we don't send errors from local dev or preview deployments
const isProductionDomain =
process.env.NODE_ENV === "production" &&
process.env.VERCEL_ENV === "production";

Sentry.init({
dsn: "https://f55e6626faf787ae5291ad75b010ea14@o4510644927660032.ingest.us.sentry.io/4510644930150400",
Expand Down
Loading