mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-26 07:05:19 +00:00
Fix sentry dsn on client (#882)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user