1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-12-03 13:24:17 +00:00

Hide Sentry DSN in a envvar

This commit is contained in:
Steffo 2022-06-29 09:21:47 +02:00
parent df79321ad6
commit 79148db091
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 4 additions and 4 deletions

View file

@ -4,10 +4,10 @@
import * as Sentry from '@sentry/nextjs';
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
const dsn = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
Sentry.init({
dsn: "https://8ff38639de2c49f39773a49864c6e775@o40131.ingest.sentry.io/6185233",
dsn,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
// ...

View file

@ -4,10 +4,10 @@
import * as Sentry from '@sentry/nextjs';
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
const dsn = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;
Sentry.init({
dsn: "https://8ff38639de2c49f39773a49864c6e775@o40131.ingest.sentry.io/6185233",
dsn,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
// ...