From b202c4e79ff0d3804c5905c8c864fc0d1284979e Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 2 Apr 2024 14:01:00 -0300 Subject: [PATCH] chore: sentry dsn (#14295) --- apps/api/v2/.env.example | 2 +- apps/api/v2/src/app.ts | 4 ++-- apps/api/v2/src/env.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/v2/.env.example b/apps/api/v2/.env.example index df907991b2..e06b413342 100644 --- a/apps/api/v2/.env.example +++ b/apps/api/v2/.env.example @@ -7,7 +7,7 @@ LOG_LEVEL= NEXTAUTH_SECRET= DATABASE_URL= JWT_SECRET= -SENTRY_DNS= +SENTRY_DSN= # KEEP THIS EMPTY, DISABLE SENTRY CLIENT INSIDE OF LIBRARIES USED BY APIv2 NEXT_PUBLIC_SENTRY_DSN= \ No newline at end of file diff --git a/apps/api/v2/src/app.ts b/apps/api/v2/src/app.ts index 84ec3593c0..45c7adcf6b 100644 --- a/apps/api/v2/src/app.ts +++ b/apps/api/v2/src/app.ts @@ -44,9 +44,9 @@ export const bootstrap = (app: NestExpressApplication): NestExpressApplication = }) ); - if (process.env.SENTRY_DNS) { + if (process.env.SENTRY_DSN) { Sentry.init({ - dsn: getEnv("SENTRY_DNS"), + dsn: getEnv("SENTRY_DSN"), }); } diff --git a/apps/api/v2/src/env.ts b/apps/api/v2/src/env.ts index 84516b243e..d1840bf6a5 100644 --- a/apps/api/v2/src/env.ts +++ b/apps/api/v2/src/env.ts @@ -9,7 +9,7 @@ export type Environment = { NEXTAUTH_SECRET: string; DATABASE_URL: string; JWT_SECRET: string; - SENTRY_DNS: string; + SENTRY_DSN: string; LOG_LEVEL: keyof typeof logLevels; REDIS_URL: string; };