mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
17 lines
682 B
TypeScript
17 lines
682 B
TypeScript
import type * as Sentry from '@sentry/react';
|
|
import { BrowserTracing } from '@sentry/tracing';
|
|
|
|
export const config: Sentry.BrowserOptions = {
|
|
environment: process.env.VERCEL_ENV || process.env.NEXT_PUBLIC_APP_ENV || process.env.NODE_ENV,
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
release: process.env.NEXT_PUBLIC_GIT_COMMIT_SHA || process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,
|
|
integrations: [ new BrowserTracing() ],
|
|
// We recommend adjusting this value in production, or using tracesSampler
|
|
// for finer control
|
|
tracesSampleRate: 1.0,
|
|
};
|
|
|
|
export function configureScope(scope: Sentry.Scope) {
|
|
scope.setTag('app_instance', process.env.NEXT_PUBLIC_APP_INSTANCE);
|
|
}
|