import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import { BrowserRouter } from 'react-router-dom' import './index.css' import App from './App.tsx' const SERVER_ONLY_PATHS = ['/salvation'] if (SERVER_ONLY_PATHS.some(p => location.pathname === p || location.pathname === p + '/')) { location.replace(location.href) throw new Error('redirecting') } createRoot(document.getElementById('root')!).render( , )