kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
13 wiersze
460 B
TypeScript
13 wiersze
460 B
TypeScript
import 'dotenv/config'
|
|
|
|
import * as Sentry from '@sentry/node'
|
|
|
|
// This MUST be run before anything else (imported first in the root file).
|
|
// No other imports (like env) should be imported in this file.
|
|
Sentry.init({
|
|
dsn: process.env.SENTRY_DSN, // eslint-disable-line no-process-env
|
|
environment: process.env.NODE_ENV || 'development', // eslint-disable-line no-process-env
|
|
tracesSampleRate: 1.0,
|
|
integrations: [Sentry.extraErrorDataIntegration()]
|
|
})
|