Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(docs): drop sentry errors from extensions and user apps (#35854)

Charisb4fb59b9ab25
diff --git a/apps/docs/instrumentation-client.ts b/apps/docs/instrumentation-client.ts
index a443f58c5ed..cefe0fbfc80 100644
--- a/apps/docs/instrumentation-client.ts
+++ b/apps/docs/instrumentation-client.ts
@@ -18,6 +18,17 @@ if (!IS_DEV) {
// now.
/(?:text content does not match)|hydration|hydrating/i,
],
+
+ beforeSend(event) {
+ const frames = event.exception?.values?.[0].stacktrace?.frames || []
+
+ // Drop errors originating from user apps or extensions as unactionable
+ if (frames.some((frame) => frame.filename && frame.filename.startsWith('app:///'))) {
+ return null
+ }
+
+ return event
+ },
})
}