feat: replace sentry with posthog

This commit is contained in:
2026-04-11 15:38:10 +07:00 Unverified
parent 46d4bf0119
commit 6247f98b6a
29 changed files with 1644 additions and 702 deletions
-6
View File
@@ -1,18 +1,12 @@
"use client";
import * as Sentry from "@sentry/nextjs";
import NextError from "next/error";
import { useEffect } from "react";
export default function GlobalError({
error,
}: {
error: Error & { digest?: string };
}) {
useEffect(() => {
Sentry.captureException(error);
}, [error]);
return (
<html lang="en">
<body>