Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/nextjs/src/common/captureRequestError.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { RequestEventData } from '@sentry/core';
import { RequestEventData, vercelWaitUntil } from '@sentry/core';
import { captureException, headersToDict, withScope } from '@sentry/core';
import { flushSafelyWithTimeout } from './utils/responseEnd';

type RequestInfo = {
path: string;
Expand Down Expand Up @@ -39,5 +40,7 @@ export function captureRequestError(error: unknown, request: RequestInfo, errorC
handled: false,
},
});

vercelWaitUntil(flushSafelyWithTimeout());
});
}
Loading