fix sentry

This commit is contained in:
Dreamgineer
2025-12-17 21:22:40 +07:00 Unverified
parent f4c2a870bd
commit 1e656fe091
8 changed files with 49 additions and 8 deletions
+22
View File
@@ -0,0 +1,22 @@
"use client";
import { useSentryToolbar } from "@sentry/toolbar";
import { comms } from "@/lib/comms";
export function SentryDevToolbar() {
const [debug] = comms.var("debug");
useSentryToolbar({
// Remember to conditionally enable the Toolbar.
// This will reduce network traffic for users
// who do not have credentials to login to Sentry.
enabled: debug === true,
initProps: {
organizationSlug: "astrxldev",
projectIdOrSlug: "buzz",
theme: "dark",
},
});
return "";
}