agentops icon indicating copy to clipboard operation
agentops copied to clipboard

Fix local development console errors

Open areibman opened this issue 4 months ago • 1 comments

📥 Pull Request

📘 Description Resolved numerous console errors occurring in local development mode by conditionally disabling PostHog initialization and improving its integration to gracefully handle missing keys or uninitialized states. This prevents 401, 404, and MIME type errors related to PostHog when running locally.

🧪 Testing

  1. Ran the application in local development mode.
  2. Verified that no PostHog-related errors (401, 404, MIME type) appear in the browser console.
  3. Confirmed that the core application functionality remains unaffected.

Open in Cursor Open in Web

areibman avatar Sep 10 '25 06:09 areibman

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch. Learn more about Cursor Agents

cursor[bot] avatar Sep 10 '25 06:09 cursor[bot]