Skip to content

Commit da3bd48

Browse files
committed
fix: global sentry middlewares
1 parent 4e292d8 commit da3bd48

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/start.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {
2+
sentryGlobalFunctionMiddleware,
3+
sentryGlobalRequestMiddleware,
4+
} from '@sentry/tanstackstart-react'
5+
import { createStart } from '@tanstack/react-start'
6+
7+
export const startInstance = createStart(() => {
8+
return {
9+
requestMiddleware: [sentryGlobalRequestMiddleware],
10+
functionMiddleware: [sentryGlobalFunctionMiddleware],
11+
}
12+
})

0 commit comments

Comments
 (0)