Skip to content

Commit 5e9db8b

Browse files
committed
fix: Add basename to React Router for GitHub Pages compatibility
1 parent 079d6f3 commit 5e9db8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs-site/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import APIReference from './pages/APIReference';
2222

2323
function App() {
2424
return (
25-
<Router>
25+
<Router basename={import.meta.env.BASE_URL}>
2626
<Layout>
2727
<Routes>
2828
<Route path="/" element={<Home />} />

0 commit comments

Comments
 (0)