From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/sentry-initor.tsx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/components/sentry-initor.tsx b/app/components/sentry-initor.tsx
index 457a1cf..6bf0abb 100644
--- a/app/components/sentry-initor.tsx
+++ b/app/components/sentry-initor.tsx
@@ -7,15 +7,16 @@
const SentryInit = ({
children,
-}: { children: React.ReactNode }) => {
+}: { children: React.ReactElement }) => {
useEffect(() => {
const SENTRY_DSN = document?.body?.getAttribute('data-public-sentry-dsn')
if (!isDevelopment && SENTRY_DSN) {
Sentry.init({
dsn: SENTRY_DSN,
integrations: [
- Sentry.browserTracingIntegration(),
- Sentry.replayIntegration(),
+ new Sentry.BrowserTracing({
+ }),
+ new Sentry.Replay(),
],
tracesSampleRate: 0.1,
replaysSessionSampleRate: 0.1,
--
Gitblit v1.8.0