Skip to content

Commit e386281

Browse files
authored
fix(sveltekit): Guard process variable (#15605)
`process` was guarded in #15516 already, but it still did not fix the problem as the variable `process` is not even available so the code still broke. This is another attempt to fix "process is undefined" reported in #15506
1 parent df0636d commit e386281

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

+1-1
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)