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
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,11 @@ module.exports = (phase, args) =>
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,

sourcemaps: {
disable: process.env.VERCEL_ENV !== 'production',
},
release: {
create: process.env.VERCEL_ENV === 'production',
},
});
3 changes: 2 additions & 1 deletion sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import * as Sentry from '@sentry/nextjs';

Sentry.init({
dsn: 'https://a8f2aec35998f8b8f4f0cafd73e3951d@o4504918397353984.ingest.us.sentry.io/4509436341518336',
// Kept in an environment variable to only enable in prod
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,
Expand Down
3 changes: 2 additions & 1 deletion sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import * as Sentry from '@sentry/nextjs';

Sentry.init({
dsn: 'https://a8f2aec35998f8b8f4f0cafd73e3951d@o4504918397353984.ingest.us.sentry.io/4509436341518336',
// Kept in an environment variable to only enable in prod
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,
Expand Down
3 changes: 2 additions & 1 deletion src/instrumentation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import * as Sentry from '@sentry/nextjs';

Sentry.init({
dsn: 'https://a8f2aec35998f8b8f4f0cafd73e3951d@o4504918397353984.ingest.us.sentry.io/4509436341518336',
// Kept in an environment variable to only enable in prod
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,

// Add optional integrations for additional features
integrations: [
Expand Down
Loading