import React from 'react'; import { createRoot } from 'react-dom/client'; import App from './App.tsx'; import './index.css'; import { initPerformanceMonitoring } from './utils/performance'; // Enhanced error handling for deployment environments const initializeApp = () => { try { // Initialize performance monitoring in production with safety if (process.env.NODE_ENV === 'production') { try { initPerformanceMonitoring(); } catch (perfError) { // Silently handle performance monitoring errors } } const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error('Root element not found'); } const root = createRoot(rootElement); root.render( ); } catch (error) { console.error('Failed to initialize app:', error); // Enhanced fallback for deployment environments const rootElement = document.getElementById('root'); if (rootElement) { rootElement.innerHTML = `

Dream World Tours

Application is starting up...

Please refresh the page if this message persists.

`; } } }; // Initialize the app initializeApp();