From 84f0a358df856442bc5b781274312697c677a19f Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sat, 6 Nov 2021 10:42:02 +0100 Subject: [PATCH] update Sentry config --- .env | 1 - .env.production | 1 - sentry.server.config.ts | 5 ++--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 9d4ef63..05f9e3e 100644 --- a/.env +++ b/.env @@ -1,2 +1 @@ DATE_OF_THE_EXAM=2022-01-14T00:00:00.000Z -NEXT_PUBLIC_SENTRY_ENVIRONMENT=development diff --git a/.env.production b/.env.production index a9c79fb..77a7faf 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,3 @@ NEXT_PUBLIC_API_URI=https://api.zdamegzaminzawodowy.pl/graphql NEXT_PUBLIC_URL=https://zdamegzaminzawodowy.pl NEXT_PUBLIC_CDN_URI=https://cdn.zdamegzaminzawodowy.pl/ -NEXT_PUBLIC_SENTRY_ENVIRONMENT=production diff --git a/sentry.server.config.ts b/sentry.server.config.ts index 5d85144..fd017c9 100644 --- a/sentry.server.config.ts +++ b/sentry.server.config.ts @@ -11,9 +11,8 @@ const initSentry = () => { Sentry.init({ dsn: SENTRY_DSN, tracesSampleRate: 0.3, - environment: - process.env.SENTRY_ENVIRONMENT || - process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT, + environment: process.env.NODE_ENV ?? 'development', + release: process.env.NEXT_PUBLIC_VERSION, }); };