Skip to content

Commit

Permalink
fix(sentry): adds edge config
Browse files Browse the repository at this point in the history
Adds the missing edge config client
  • Loading branch information
anguspiv committed Feb 21, 2023
1 parent 1bcb006 commit 782baa7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions sentry.edge.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// This file configures the initialization of Sentry on the browser.
// The config you add here will be used whenever a page is visited.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs';

const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;

Sentry.init({
dsn: SENTRY_DSN || 'https://4e506b139137430fa20d43cd2d526912@o1080632.ingest.sentry.io/6086695',
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
environment: process.env.NEXT_PUBLIC_ENVIRONMENT || 'development',
// ...
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
});

0 comments on commit 782baa7

Please sign in to comment.