 method: 'GET',
                cache: 'no-cache'
            });
            if (response.ok) {
                // App is ready, redirect to main page
                window.location.href = '/';
            }
        } catch (error) {
            // App not ready yet, keep checking
        }
    };

    // Check every 2 seconds if the main app is ready
    const healthCheckInterval = setInterval(checkAppReady, 2000);

    // Fallback: redirect after 60 seconds regardless
    setTimeout(() => {
        clea