Skip to content

Commit

Permalink
chore: something wrong with sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 29, 2023
1 parent 159be16 commit 59f3b98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
15 changes: 2 additions & 13 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import { init } from '@sentry/nextjs';

import {
SENTRY_DSN,
SENTRY_ENABLE,
SENTRY_CAPTURE_RATE,
} from '@/next.constants.mjs';
import { SENTRY_DSN, SENTRY_ENABLE } from '@/next.constants.mjs';

init({
// Only run Sentry on Vercel Environment
enabled: SENTRY_ENABLE,
// Provide Sentry's Secret Key
dsn: SENTRY_DSN,
// Percentage of events to send to Sentry (1% of them) (for performance metrics)
tracesSampleRate: SENTRY_CAPTURE_RATE,
});
init({ enabled: SENTRY_ENABLE, dsn: SENTRY_DSN });
15 changes: 2 additions & 13 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
import { init } from '@sentry/nextjs';

import {
SENTRY_DSN,
SENTRY_ENABLE,
SENTRY_CAPTURE_RATE,
} from '@/next.constants.mjs';
import { SENTRY_DSN, SENTRY_ENABLE } from '@/next.constants.mjs';

init({
// Only run Sentry on Vercel Environment
enabled: SENTRY_ENABLE,
// Provide Sentry's Secret Key
dsn: SENTRY_DSN,
// Percentage of events to send to Sentry (1% of them) (for performance metrics)
tracesSampleRate: SENTRY_CAPTURE_RATE,
});
init({ enabled: SENTRY_ENABLE, dsn: SENTRY_DSN });

0 comments on commit 59f3b98

Please sign in to comment.