lobe-chat
/
sentry.server.config.ts
19 строк · 740.0 Байт
1// This file configures the initialization of Sentry on the server.
2// The config you add here will be used whenever the server handles a request.
3// https://docs.sentry.io/platforms/javascript/guides/nextjs/
4import * as Sentry from '@sentry/nextjs';5
6if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) {7Sentry.init({8// Setting this option to true will print useful information to the console while you're setting up Sentry.9debug: false,10
11dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,12
13// Adjust this value in production, or use tracesSampler for greater control14tracesSampleRate: 1,15
16// uncomment the line below to enable Spotlight (https://spotlightjs.com)17// spotlight: process.env.NODE_ENV === 'development',18});19}
20