From e9f1e0afc9b0cc14b9d15a42febca2ba86c7e2f7 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 21 Sep 2022 15:01:59 +1000 Subject: More sentry shit --- bundle/src/Server.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index fa99cf07..d6200f83 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -78,7 +78,12 @@ async function main() { environment: Config.get().sentry.environment, beforeSend: (event, hint) => { const url = event.request?.url; - if (url?.includes("/assets/")) return null; + if (url && url.includes("/assets/")) return null; + + if (event.request?.url) { + event.request.url = event.request.url.split("/").map(x => !parseInt(x) ? x : ":id").join("/"); + } + return event; }, }); -- cgit 1.4.1