From 4f98b5e533fe969eb7e135ad5590b3731992ca73 Mon Sep 17 00:00:00 2001 From: Maud Royer Date: Fri, 6 Sep 2024 13:23:22 +0200 Subject: [PATCH] feat: add sentry environment Signed-off-by: Maud Royer --- sentry.client.config.ts | 1 + sentry.edge.config.ts | 1 + sentry.server.config.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/sentry.client.config.ts b/sentry.client.config.ts index a33e349..ed22950 100644 --- a/sentry.client.config.ts +++ b/sentry.client.config.ts @@ -6,6 +6,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, + environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT, integrations: [Sentry.replayIntegration()], tracesSampleRate: 1, replaysSessionSampleRate: 0.1, diff --git a/sentry.edge.config.ts b/sentry.edge.config.ts index da0927e..d2f70bb 100644 --- a/sentry.edge.config.ts +++ b/sentry.edge.config.ts @@ -7,5 +7,6 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, + environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT, tracesSampleRate: 1, }); diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 7d5c363..0e0bf92 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -6,6 +6,7 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, + environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT, tracesSampleRate: 1, debug: false, });