From 5f364a1cab1b39b1465932268fbf4487f8230363 Mon Sep 17 00:00:00 2001 From: Leo Thorp Date: Thu, 8 Feb 2024 22:07:19 -0700 Subject: [PATCH] docs(nextjs): correct nonexistent function name in deprecation message --- packages/nextjs/src/common/wrapApiHandlerWithSentry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/src/common/wrapApiHandlerWithSentry.ts b/packages/nextjs/src/common/wrapApiHandlerWithSentry.ts index 62124e46912e..ed591055d0a3 100644 --- a/packages/nextjs/src/common/wrapApiHandlerWithSentry.ts +++ b/packages/nextjs/src/common/wrapApiHandlerWithSentry.ts @@ -45,7 +45,7 @@ export const withSentryAPI = wrapApiHandlerWithSentry; * @param parameterizedRoute The route whose handler is being wrapped. Meant for internal use only. * @returns A wrapped version of the handler * - * @deprecated Use `wrapApiWithSentry()` instead + * @deprecated Use `wrapApiHandlerWithSentry()` instead */ export function withSentry(apiHandler: NextApiHandler, parameterizedRoute?: string): NextApiHandler { return new Proxy(apiHandler, {