Commit 7c36ab9
committed
Fix Cloudflare Worker: use globalThis.process for safe env access
The Cloudflare Workers runtime does not define the process global at
module evaluation time, even with nodejs_compat_populate_process_env.
Use globalThis.process?.env?. with full optional chaining to safely
handle this, matching the pattern used by the SDK itself in
console_logger_transport.ts.1 parent 5f56ce9 commit 7c36ab9
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments