@coko/client
Version:
Client side common code for coko apps
24 lines (23 loc) • 604 B
JavaScript
import { serverUrl as e } from "./getUrl.js";
import * as t from "@sentry/react";
//#region src/helpers/sentry.ts
var n = window.env?.sentry?.dsn || process.env.SENTRY_DSN, r = window.env?.sentry?.environment || process.env.SENTRY_ENVIRONMENT;
n && r && t.init({
dsn: n,
environment: r,
sendDefaultPii: !0,
integrations: [
t.consoleLoggingIntegration({ levels: [
"log",
"warn",
"error"
] }),
t.browserTracingIntegration(),
t.replayIntegration()
],
enableLogs: !0,
replaysSessionSampleRate: .1,
replaysOnErrorSampleRate: 1,
tracePropagationTargets: e ? [e] : []
});
//#endregion