import './index.css'; import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router'; import App from './App'; /** * Base path pour le routeur React. * - Local : VITE_BASE_PATH absent → défaut '/' * - Démo : VITE_BASE_PATH=/demo-wish-wash/ → routes préfixées * - Prod : VITE_BASE_PATH=/ → racine */ const basePath = import.meta.env.VITE_BASE_PATH || '/'; const rootElement = document.getElementById('root'); if (!rootElement) { throw new Error("Could not find root element to mount to"); } const root = ReactDOM.createRoot(rootElement); root.render( );