Temp workaround for @sentry/integrations update

This commit is contained in:
dangered wolf 2023-09-10 10:36:30 -04:00
parent 4f3fd7b631
commit ed1005482a
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -662,6 +662,8 @@ const sentryWrapper = async (event: FetchEvent, test = false): Promise<void> =>
allowedHeaders: /(.*)/,
allowedSearchParams: /(.*)/,
},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore TODO: Figure out why this throws type errors after @sentry/integrations update
integrations: [new RewriteFrames({ root: '/' })],
/* event includes 'waitUntil', which is essential for Sentry logs to be delivered.
Also includes 'request' -- no need to set it separately. */