diff options
-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; }, }); |