Skip to content

Commit c820a3b

Browse files
committed
fix: Update Sentry DSN variable from BFF_SENTRY_DSN to VITE_SENTRY_DSN for consistency
1 parent a502dc1 commit c820a3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Sentry.setupFastifyErrorHandler(fastify);
5252
await fastify.register(envPlugin);
5353

5454
let sentryHost = '';
55-
if (fastify.config.BFF_SENTRY_DSN && fastify.config.BFF_SENTRY_DSN.length > 0) {
55+
if (fastify.config.VITE_SENTRY_DSN && fastify.config.VITE_SENTRY_DSN.length > 0) {
5656
try {
57-
sentryHost = new URL(fastify.config.BFF_SENTRY_DSN).hostname;
57+
sentryHost = new URL(fastify.config.VITE_SENTRY_DSN).hostname;
5858
} catch {
59-
console.log('BFF_SENTRY_DSN is not a valid URL');
59+
console.log('VITE_SENTRY_DSN is not a valid URL');
6060
sentryHost = '';
6161
}
6262
}

0 commit comments

Comments
 (0)