Skip to content

Commit 3871892

Browse files
authored
feat(nextjs): Update experimental_captureRequestError to reflect RequestInfo.path change in Next.js canary (#13344)
1 parent e623782 commit 3871892

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev-packages/e2e-tests/test-applications/nextjs-15/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/node": "18.11.17",
1818
"@types/react": "18.0.26",
1919
"@types/react-dom": "18.0.9",
20-
"next": "15.0.0-canary.77",
20+
"next": "15.0.0-canary.112",
2121
"react": "beta",
2222
"react-dom": "beta",
2323
"typescript": "4.9.5"

packages/nextjs/src/common/captureRequestError.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { captureException, withScope } from '@sentry/core';
22

33
type RequestInfo = {
4-
url: string;
4+
path: string;
55
method: string;
66
headers: Record<string, string | string[] | undefined>;
77
};
@@ -33,7 +33,7 @@ export function experimental_captureRequestError(
3333
});
3434

3535
scope.setContext('nextjs', {
36-
request_path: request.url,
36+
request_path: request.path,
3737
router_kind: errorContext.routerKind,
3838
router_path: errorContext.routePath,
3939
route_type: errorContext.routeType,

0 commit comments

Comments
 (0)