We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e1db7 commit 8f847eaCopy full SHA for 8f847ea
packages/nextjs/src/server/wrapGetServerSidePropsWithSentry.ts
@@ -44,7 +44,7 @@ export function wrapGetServerSidePropsWithSentry(
44
typeof tracedGetServerSideProps
45
>);
46
47
- if ('props' in serverSideProps) {
+ if (serverSideProps && 'props' in serverSideProps) {
48
const requestTransaction = getTransactionFromRequest(req);
49
if (requestTransaction) {
50
serverSideProps.props._sentryTraceData = requestTransaction.toTraceparent();
0 commit comments