π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
Frontend crash UI
Enno Gelhaus8117ade8c9c6
diff --git a/apps/error.tsx b/apps/error.tsxnew file mode 100644index 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