From b11a98e7b1ba626db78a36a66cdf7e9ced33aa48 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Tue, 13 Aug 2024 10:49:20 +0000 Subject: [PATCH 1/2] feat(nextjs): Update `experimental_captureRequestError` to reflect `RequestInfo.path` change in Next.js canary --- packages/nextjs/src/common/captureRequestError.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/src/common/captureRequestError.ts b/packages/nextjs/src/common/captureRequestError.ts index 7968907ad9bf..8350a0f2e593 100644 --- a/packages/nextjs/src/common/captureRequestError.ts +++ b/packages/nextjs/src/common/captureRequestError.ts @@ -1,7 +1,7 @@ import { captureException, withScope } from '@sentry/core'; type RequestInfo = { - url: string; + path: string; method: string; headers: Record; }; @@ -33,7 +33,7 @@ export function experimental_captureRequestError( }); scope.setContext('nextjs', { - request_path: request.url, + request_path: request.path, router_kind: errorContext.routerKind, router_path: errorContext.routePath, route_type: errorContext.routeType, From 4fee7dd25b8c4f90237571905f4b643ba03262ee Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Tue, 13 Aug 2024 11:07:18 +0000 Subject: [PATCH 2/2] bump Next.js version in e2e test --- dev-packages/e2e-tests/test-applications/nextjs-15/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/package.json b/dev-packages/e2e-tests/test-applications/nextjs-15/package.json index 39fcedf174da..8fd9f4368977 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/package.json @@ -17,7 +17,7 @@ "@types/node": "18.11.17", "@types/react": "18.0.26", "@types/react-dom": "18.0.9", - "next": "15.0.0-canary.77", + "next": "15.0.0-canary.112", "react": "beta", "react-dom": "beta", "typescript": "4.9.5"