Fix sentry dsn on client (#882)

This commit is contained in:
Sergey Mankovsky
2026-02-25 23:34:17 +01:00
committed by GitHub
parent 25bcdb16a8
commit f428b9e3f2
3 changed files with 13 additions and 4 deletions

View File

@@ -3,8 +3,9 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs";
import { getClientEnv } from "./app/lib/clientEnv";
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
const SENTRY_DSN = getClientEnv().SENTRY_DSN;
if (SENTRY_DSN) {
Sentry.init({