vega-frontend-monorepo/apps/trading/sentry.server.config.js

14 lines
300 B
JavaScript
Raw Normal View History

import * as Sentry from '@sentry/nextjs';
import { BrowserTracing } from '@sentry/tracing';
const dsn = process.env['NX_TRADING_SENTRY_DSN'];
if (dsn) {
Sentry.init({
dsn,
integrations: [new BrowserTracing()],
tracesSampleRate: 1,
environment: process.env['NX_VEGA_ENV'],
});
}