import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App'; import './app/globals.css'; import './lib/supabase'; // Initialize Supabase on load (optional, but good for consistency) const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error("Could not find root element to mount to"); } try { const root = ReactDOM.createRoot(rootElement); root.render( ); } catch (error) { console.error('Critical initialization error:', error); rootElement.innerHTML = `

Platform Recovery

The application failed to initialize. This may be due to a script loading error.

`; } // Cache bust: 2026-05-31T17:57:00