diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-21 15:01:59 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-21 15:01:59 +1000 |
commit | e88f72c4f075e5c53d509c9d882592278affeffe (patch) | |
tree | 69534a1fd07dfd7e9776235af220f5760a53be45 | |
parent | Remove webrtc from bundle (diff) | |
download | server-e88f72c4f075e5c53d509c9d882592278affeffe.tar.xz |
More sentry shit
-rw-r--r-- | bundle/src/Server.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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; }, }); |