hook.js:608 <Router basename="/."> is not able to match the URL

This commit is contained in:
Anthony Stirling 2025-09-24 20:02:19 +01:00
parent ea78f78760
commit 826ff580db

View File

@ -10,6 +10,7 @@ import App from './App';
import './i18n'; // Initialize i18next
import posthog from 'posthog-js';
import { PostHogProvider } from 'posthog-js/react';
import { BASE_PATH } from './constants/app';
// Compute initial color scheme
function getInitialScheme(): 'light' | 'dark' {
@ -60,7 +61,7 @@ root.render(
<PostHogProvider
client={posthog}
>
<BrowserRouter basename={(import.meta.env.BASE_URL || '/').replace(/\/$/, '')}>
<BrowserRouter basename={BASE_PATH}>
<App />
</BrowserRouter>
</PostHogProvider>