Skip to content

Commit 69eb22e

Browse files
committed
fix(analytics): enable console error capture in posthog
1 parent e98df45 commit 69eb22e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/web/src/App.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ export const App = () => {
6969
wrappedChildren = (
7070
<PostHogProvider
7171
apiKey={ENV_WEB.POSTHOG_KEY as string}
72-
options={{ api_host: ENV_WEB.POSTHOG_HOST! }}
72+
options={{
73+
api_host: ENV_WEB.POSTHOG_HOST!,
74+
capture_exceptions: {
75+
capture_unhandled_errors: true,
76+
capture_unhandled_rejections: true,
77+
capture_console_errors: true,
78+
},
79+
}}
7380
>
7481
{wrappedChildren}
7582
</PostHogProvider>

0 commit comments

Comments
 (0)