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.
1 parent ce1edd3 commit 5135f8eCopy full SHA for 5135f8e
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