Add in /salvation
This commit is contained in:
@@ -4,6 +4,12 @@ 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(
|
||||
<StrictMode>
|
||||
<BrowserRouter>
|
||||
|
||||
Reference in New Issue
Block a user