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.
process
1 parent cd0d90a commit 082e0e8Copy full SHA for 082e0e8
packages/sveltekit/src/server-common/utils.ts
@@ -19,6 +19,10 @@ export function getTracePropagationData(event: RequestEvent): { sentryTrace: str
19
20
/** Flush the event queue to ensure that events get sent to Sentry before the response is finished and the lambda ends */
21
export async function flushIfServerless(): Promise<void> {
22
+ if (!process) {
23
+ return;
24
+ }
25
+
26
const platformSupportsStreaming = !process.env.LAMBDA_TASK_ROOT && !process.env.VERCEL;
27
28
if (!platformSupportsStreaming) {
0 commit comments