From 21597ba57b5ad14e47329e6757e37646b4aba852 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Sun, 15 Mar 2026 10:24:57 -0700 Subject: [PATCH] Filter unnecessary sentry css and js errors. --- app/entry.client.tsx | 4 ++++ instrument.server.mjs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/entry.client.tsx b/app/entry.client.tsx index 24fdcdc..679b1a9 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -9,6 +9,10 @@ Sentry.init({ sendDefaultPii: true, integrations: [], tracesSampleRate: 0, + ignoreErrors: [ + /No route matches URL ".*\.css"/, + /No route matches URL ".*\.js"/, + ], }); startTransition(() => { diff --git a/instrument.server.mjs b/instrument.server.mjs index 3f60506..9159559 100644 --- a/instrument.server.mjs +++ b/instrument.server.mjs @@ -5,4 +5,8 @@ Sentry.init({ enabled: process.env.NODE_ENV === "production", sendDefaultPii: true, tracesSampleRate: 0, + ignoreErrors: [ + /No route matches URL ".*\.css"/, + /No route matches URL ".*\.js"/, + ], }); \ No newline at end of file