update Sentry config

This commit is contained in:
Dawid Wysokiński 2021-11-06 10:42:02 +01:00
parent 00db95efd8
commit 84f0a358df
Signed by: Kichiyaki
GPG Key ID: EF14026D247EB867
3 changed files with 2 additions and 5 deletions

1
.env
View File

@ -1,2 +1 @@
DATE_OF_THE_EXAM=2022-01-14T00:00:00.000Z
NEXT_PUBLIC_SENTRY_ENVIRONMENT=development

View File

@ -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

View File

@ -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,
});
};