lobe-chat

Форк
0
/
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/
4
import * as Sentry from '@sentry/nextjs';
5

6
if (!!process.env.NEXT_PUBLIC_SENTRY_DSN) {
7
  Sentry.init({
8
    // Setting this option to true will print useful information to the console while you're setting up Sentry.
9
    debug: false,
10

11
    dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
12

13
    // Adjust this value in production, or use tracesSampler for greater control
14
    tracesSampleRate: 1,
15

16
    // uncomment the line below to enable Spotlight (https://spotlightjs.com)
17
    // spotlight: process.env.NODE_ENV === 'development',
18
  });
19
}
20

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.