remove sentry
This commit is contained in:
committed by
Carl-Gerhard Lindesvärd
parent
c333d660c3
commit
e11ed557dc
@@ -4,7 +4,6 @@ import { Input } from '@/components/ui/input';
|
||||
import { getClerkError } from '@/utils/clerk-error';
|
||||
import { useSignIn } from '@clerk/nextjs';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { captureMessage } from '@sentry/nextjs';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { toast } from 'sonner';
|
||||
@@ -55,11 +54,7 @@ const EmailSignUp = () => {
|
||||
await setActive({ session: result.createdSessionId });
|
||||
router.push('/');
|
||||
} else {
|
||||
captureMessage('Sign in failed', {
|
||||
extra: {
|
||||
status: result.status,
|
||||
},
|
||||
});
|
||||
// Error...
|
||||
}
|
||||
} catch (e) {
|
||||
const error = getClerkError(e);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { useEffect } from 'react';
|
||||
import * as Sentry from '@sentry/nextjs';
|
||||
|
||||
export default function GlobalError({
|
||||
error,
|
||||
@@ -9,9 +8,7 @@ export default function GlobalError({
|
||||
error: Error & { digest?: string };
|
||||
reset: () => void;
|
||||
}) {
|
||||
useEffect(() => {
|
||||
Sentry.captureException(error);
|
||||
}, [error]);
|
||||
useEffect(() => {}, [error]);
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
|
||||
Reference in New Issue
Block a user