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