Files
trading_bot_v3/app/api/health/route.js
mindesbunister e77e06a5fe 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
2025-07-18 08:51:50 +02:00

11 lines
226 B
JavaScript

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'
})
}