Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove optional chaining in debug environment variable check (#6412
) * fix: remove optional chaining in debug environment variable check Removed optional chaining from `globalThis?.process.env['DEBUG'] || globalThis.DEBUG` to ensure it runs on Cloudflare Workers. The current implementation with optional chaining is flawed as it fails when `globalThis` is undefined, resulting in an error when accessing `process.env`. Although this change does not fully resolve the issue, it aligns with the requirement for Cloudflare Workers compatibility. Ref: cloudflare/workers-sdk#6402 * Update packages/utils/src/debugTimer.ts --------- Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
- Loading branch information