From f09d4b97ac97e9fa61decba433c4aff4cbfaf2fc Mon Sep 17 00:00:00 2001 From: Olivier Savignac Date: Sun, 23 Jun 2024 10:18:58 -0400 Subject: [PATCH] fix: path --- src/boot/sentry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: '~/', }),