mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-12-04 05:34:21 +00:00
Hide Sentry DSN in a envvar
This commit is contained in:
parent
df79321ad6
commit
79148db091
2 changed files with 4 additions and 4 deletions
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
import * as Sentry from '@sentry/nextjs';
|
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({
|
Sentry.init({
|
||||||
dsn: "https://8ff38639de2c49f39773a49864c6e775@o40131.ingest.sentry.io/6185233",
|
dsn,
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
// ...
|
// ...
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
import * as Sentry from '@sentry/nextjs';
|
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({
|
Sentry.init({
|
||||||
dsn: "https://8ff38639de2c49f39773a49864c6e775@o40131.ingest.sentry.io/6185233",
|
dsn,
|
||||||
// Adjust this value in production, or use tracesSampler for greater control
|
// Adjust this value in production, or use tracesSampler for greater control
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
// ...
|
// ...
|
||||||
|
|
Loading…
Reference in a new issue