Skip to content
Merged
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
5 changes: 5 additions & 0 deletions apps/app/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Sentry.init({
process.env.SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. On Vercel, VERCEL_ENV is 'production' | 'preview'
// | 'development'; on any non-production deployment (or if the var is missing)
// Sentry stays disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.VERCEL_ENV === 'production',

tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.1,

enableLogs: true,
Expand Down
5 changes: 5 additions & 0 deletions apps/app/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Sentry.init({
process.env.SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. On Vercel, VERCEL_ENV is 'production' | 'preview'
// | 'development'; on any non-production deployment (or if the var is missing)
// Sentry stays disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.VERCEL_ENV === 'production',

tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.1,

// Off in production: local variables in stack frames can expose request-scoped
Expand Down
5 changes: 5 additions & 0 deletions apps/app/src/instrumentation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Sentry.init({
process.env.NEXT_PUBLIC_SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. NEXT_PUBLIC_VERCEL_ENV is inlined at build time
// per Vercel deployment; preview/dev builds (or a missing var) keep Sentry
// disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.NEXT_PUBLIC_VERCEL_ENV === 'production',

integrations: [
// Add `data-sentry-mask` (or `.sentry-mask`) to any element rendering
// customer-confidential data; `data-sentry-block` to drop whole sections.
Expand Down
5 changes: 5 additions & 0 deletions apps/portal/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Sentry.init({
process.env.SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. On Vercel, VERCEL_ENV is 'production' | 'preview'
// | 'development'; on any non-production deployment (or if the var is missing)
// Sentry stays disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.VERCEL_ENV === 'production',

tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.1,

enableLogs: true,
Expand Down
5 changes: 5 additions & 0 deletions apps/portal/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Sentry.init({
process.env.SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. On Vercel, VERCEL_ENV is 'production' | 'preview'
// | 'development'; on any non-production deployment (or if the var is missing)
// Sentry stays disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.VERCEL_ENV === 'production',

tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.1,

// Off in production: local variables in stack frames can expose request-scoped
Expand Down
5 changes: 5 additions & 0 deletions apps/portal/src/instrumentation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Sentry.init({
process.env.NEXT_PUBLIC_SENTRY_DSN ??
'https://331f1c3d4b08e9352dd1a2621e1ae845@o4509214247813120.ingest.us.sentry.io/4511304630927360',

// Only report from production. NEXT_PUBLIC_VERCEL_ENV is inlined at build time
// per Vercel deployment; preview/dev builds (or a missing var) keep Sentry
// disabled — a no-op, never an error — to avoid noise and quota burn.
enabled: process.env.NEXT_PUBLIC_VERCEL_ENV === 'production',

integrations: [
// Add `data-sentry-mask` (or `.sentry-mask`) to any element rendering
// customer-confidential data; `data-sentry-block` to drop whole sections.
Expand Down
Loading