setup Sentry envs

This commit is contained in:
Aarni Halinen
2021-11-11 20:21:31 +02:00
parent a5dd2ae3b8
commit 2c59fdf592
7 changed files with 12 additions and 6 deletions
+2
View File
@@ -5,9 +5,11 @@
import * as Sentry from "@sentry/nextjs";
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
const ENV = process.env.NEXT_PUBLIC_DEPLOY_ENV;
Sentry.init({
dsn: SENTRY_DSN,
environment: ENV,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
// ...