Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

Frontend crash UI

Enno Gelhaus8117ade8c9c6
diff --git a/apps/error.tsx b/apps/error.tsx
new file mode 100644
index 000000000..c72ff5722
--- /dev/null
+++ b/apps/error.tsx
@@ -0,0 +1,29 @@
+'use client';
+
+import { useEffect } from 'react';
+import * as Sentry from '@sentry/nextjs';
+
+export default function GlobalError({ error }: { error: Error }) {
+ useEffect(() => {
+ const eventId = Sentry.captureException(error);
+ Sentry.showReportDialog({
+ eventId,
+ title: "Something broke!",
+ subtitle: "Please help us fix the issue by providing some details.",
+ labelComments: "What happened?",
+ labelName: "Your name",
+ labelEmail: "Your email",
+ labelSubmit: "Send Report",
+ lang: "en",
+ });
+ }, [error]);
+
+ return (
+ <html>
+ <body>
+ <h2>Something went wrong</h2>
+ <p>{error.message}</p>
+ </body>
+ </html>
+ );
+}
\ No newline at end of file