File tree 1 file changed +1
-1
lines changed
packages/nextjs/src/utils
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export type AugmentedNextApiResponse = NextApiResponse & {
45
45
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
46
46
export const withSentry = ( origHandler : NextApiHandler , parameterizedRoute ?: string ) : WrappedNextApiHandler => {
47
47
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
48
- return async ( req , res ) => {
48
+ return async function sentryWrappedHandler ( req : AugmentedNextApiRequest , res : NextApiResponse ) {
49
49
// We're now auto-wrapping API route handlers using `withSentryAPI` (which uses `withSentry` under the hood), but
50
50
// users still may have their routes manually wrapped with `withSentry`. This check makes `sentryWrappedHandler`
51
51
// idempotent so that those cases don't break anything.
You can’t perform that action at this time.
0 commit comments