diff --git a/src/boot/sentry.ts b/src/boot/sentry.ts index b698fc3d..36334b4e 100644 --- a/src/boot/sentry.ts +++ b/src/boot/sentry.ts @@ -12,7 +12,7 @@ export default boot(({ app }) => { Sentry.rewriteFramesIntegration({ // @ts-expect-error Frame typing iteratee: (frame) => { - frame.filename = path.basename(frame.filename); + frame.filename = path.basename(frame.filename) ?? frame.filename; }, prefix: '~/', }),