Skip to content

Commit 8a9e462

Browse files
committed
feat(sveltekit): Guard process variable
1 parent f377496 commit 8a9e462

File tree

1 file changed

+1
-1
lines changed
  • packages/sveltekit/src/server-common

1 file changed

+1
-1
lines changed

packages/sveltekit/src/server-common/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function getTracePropagationData(event: RequestEvent): { sentryTrace: str
1919

2020
/** Flush the event queue to ensure that events get sent to Sentry before the response is finished and the lambda ends */
2121
export async function flushIfServerless(): Promise<void> {
22-
if (!process) {
22+
if (typeof process === 'undefined') {
2323
return;
2424
}
2525

0 commit comments

Comments
 (0)