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 Eliminates excessive console errors in local development by conditionally disabling PostHog analytics and suppressing expected 401 API authentication warnings. This provides a significantly cleaner console, improving the local developer experience.

🧪 Testing

  • Confirmed PostHog-related 401/404 and MIME type errors are absent in local development when PostHog keys are not set.
  • Verified verbose 401 API authentication errors are suppressed in the development console.
  • Ensured core application functionality (e.g., sign-in redirection) remains intact.
  • Validated PostHog analytics still initialize and function correctly when configured for non-local environments.

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]