From f7d8033c967492e7bdcc1ab780919983bb57038f Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Fri, 11 Oct 2024 18:07:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20global-error=20from=20l?= =?UTF-8?q?anding=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was causing issues on localhost --- apps/landing/src/app/global-error.tsx | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 apps/landing/src/app/global-error.tsx diff --git a/apps/landing/src/app/global-error.tsx b/apps/landing/src/app/global-error.tsx deleted file mode 100644 index 9bda5feef..000000000 --- a/apps/landing/src/app/global-error.tsx +++ /dev/null @@ -1,23 +0,0 @@ -"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 ( - - - {/* `NextError` is the default Next.js error page component. Its type - definition requires a `statusCode` prop. However, since the App Router - does not expose status codes for errors, we simply pass 0 to render a - generic error message. */} - - - - ); -} \ No newline at end of file