Fix frontend console errors: disable WebSocket and add defensive array checks
- Disable Socket.IO connections in production to prevent connection errors - Add Array.isArray() checks before calling filter() methods - Fix TypeError: r.filter is not a function errors in Dashboard, Analytics, and Agents pages - Ensure API responses are treated as arrays with fallback to empty arrays 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Production Environment Configuration
|
||||
VITE_API_BASE_URL=https://hive.home.deepblack.cloud
|
||||
VITE_WS_BASE_URL=https://hive.home.deepblack.cloud
|
||||
VITE_DISABLE_SOCKETIO=false
|
||||
VITE_DISABLE_SOCKETIO=true
|
||||
VITE_ENABLE_DEBUG_MODE=false
|
||||
VITE_LOG_LEVEL=warn
|
||||
VITE_ENABLE_ANALYTICS=true
|
||||
Reference in New Issue
Block a user