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.
2 parents dab1a5a + 5135f8e commit 491480cCopy full SHA for 491480c
src/requestTracing/utils.ts
@@ -111,7 +111,7 @@ export function requestTracingEnabled(): boolean {
111
112
function getEnvironmentVariable(name: string) {
113
// Make it compatible with non-Node.js runtime
114
- if (typeof process?.env === "object") {
+ if (typeof process !== "undefined" && typeof process?.env === "object") {
115
return process.env[name];
116
} else {
117
return undefined;
0 commit comments