Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔥 Remove global-error from landing page

Luke Vellaf7d8033c9674
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 (
- <html>
- <body>
- {/* `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. */}
- <NextError statusCode={0} />
- </body>
- </html>
- );
-}
\ No newline at end of file