feat: enhance TradingView authentication debugging

- Add comprehensive debug logging to checkLoginStatus Strategy 1
- Enhanced authentication variable detection with detailed console output
- Added debug logging for window.is_authenticated and window.user checks
- Improved error visibility for authentication detection issues
- Added health API endpoint for debugging and monitoring
- Enhanced Dockerfile with better caching and debugging capabilities

Authentication detection now shows detailed logs when checking:
- window.is_authenticated variable presence and value
- window.user object detection and structure
- Helps identify why auth detection sees user data but doesn't return true
This commit is contained in:
mindesbunister
2025-07-18 08:51:50 +02:00
parent 38ebc4418b
commit e77e06a5fe
3 changed files with 442 additions and 50 deletions

10
app/api/health/route.js Normal file
View File

@@ -0,0 +1,10 @@
import { NextResponse } from 'next/server'
export async function GET() {
return NextResponse.json({
status: 'healthy',
timestamp: new Date().toISOString(),
service: 'AI Trading Bot',
version: '1.0.0'
})
}