summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-21 15:01:59 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-21 15:01:59 +1000
commite88f72c4f075e5c53d509c9d882592278affeffe (patch)
tree69534a1fd07dfd7e9776235af220f5760a53be45
parentRemove webrtc from bundle (diff)
downloadserver-e88f72c4f075e5c53d509c9d882592278affeffe.tar.xz
More sentry shit
-rw-r--r--bundle/src/Server.ts7
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;
 			},
 		});