mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore(docs): loosen overly strict sentry filter (#35882)
Should've double-checked this before applying the filter =_=""" but apparently filtering out `app:///` also filters out legitimate events, since those files are prefixed by `app:///` as well. Instead let's keep only `app:///_next` since that should include all our static JS assets.
This commit is contained in:
1 parent
806e6e92c5
commit
17efbe1964
1 file changed
+5
-2
@@ -22,8 +22,11 @@ if (!IS_DEV) {
|
||||
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:///'))) {
|
||||
// Drop errors not originating from docs app static files as unactionable
|
||||
if (
|
||||
frames &&
|
||||
!frames.some((frame) => frame.filename && frame.filename.startsWith('app:///_next'))
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user