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:
Charis authored and GitHub committed 2025-05-23 14:53:05 -04:00
1 parent 806e6e92c5
commit 17efbe1964
1 file changed
+5 -2
+5 -2
View File
@@ -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
}