import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import "./index.css"; import "./lib/i18n/index.js"; // initialize i18next before the app renders import { App } from "./App.js"; import { ErrorBoundary } from "./lib/ErrorBoundary.js"; import { installClientLogging } from "./lib/logger.js"; // Capture uncaught errors / rejections / console noise → backend log store, before // the app mounts so even an early crash is reported. See lib/logger.ts. installClientLogging(); const rootEl = document.getElementById("root"); if (!rootEl) throw new Error("root element not found"); createRoot(rootEl).render( , );