Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Jun 23, 2024
1 parent f09d4b9 commit e0ad9ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boot/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default boot(({ app }) => {
Sentry.rewriteFramesIntegration({
// @ts-expect-error Frame typing
iteratee: (frame) => {
frame.filename = path.basename(frame.filename) ?? frame.filename;
frame.filename = frame.filename
? path.basename(frame.filename)
: frame.filename;
},
prefix: '~/',
}),
Expand Down

0 comments on commit e0ad9ed

Please sign in to comment.