[PR #4007] [MERGED] fix(telemetry): process referenced on non-nodejs runtime #22033

Closed
opened 2026-04-15 20:46:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4007
Author: @Kinfe123
Created: 8/14/2025
Status: Merged
Merged: 8/14/2025
Merged by: @Bekacru

Base: canaryHead: fix/process-not-available


📝 Commits (2)

📊 Changes

2 files changed (+8 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/telemetry/detectors/detect-project-info.ts (+3 -2)
📝 packages/better-auth/src/telemetry/detectors/detect-system-info.ts (+5 -2)

📄 Description

closes #3998

Summary by cubic

Updated telemetry detection logic to avoid referencing process in non-Node.js runtimes, preventing runtime errors.

  • Bug Fixes
  • Used a shared env utility to access environment variables safely.
  • Added checks to handle cases where process is unavailable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4007 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/14/2025 **Status:** ✅ Merged **Merged:** 8/14/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/process-not-available` --- ### 📝 Commits (2) - [`ed39130`](https://github.com/better-auth/better-auth/commit/ed39130480d546c77babd838ad00d8b02c86d80d) process in cf worker - [`35cb359`](https://github.com/better-auth/better-auth/commit/35cb359b71aec6d04c9fd06f13b63ce8d0cf0ac6) lint ### 📊 Changes **2 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/telemetry/detectors/detect-project-info.ts` (+3 -2) 📝 `packages/better-auth/src/telemetry/detectors/detect-system-info.ts` (+5 -2) </details> ### 📄 Description closes #3998 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated telemetry detection logic to avoid referencing `process` in non-Node.js runtimes, preventing runtime errors. - **Bug Fixes** - Used a shared `env` utility to access environment variables safely. - Added checks to handle cases where `process` is unavailable. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 20:46:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22033