Skip to content

Scheduling infrastructure for absolutely everyone.

chore: sentry dsn (#14295)

Erikb202c4e79ff0
diff --git a/apps/api/v2/.env.example b/apps/api/v2/.env.example
index df907991b2a..e06b413342b 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 84ec3593c00..45c7adcf6b6 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 84516b243ef..d1840bf6a52 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;
};