Skip to content

Commit

Permalink
fix: add basename to router
Browse files Browse the repository at this point in the history
  • Loading branch information
jgleal committed Dec 12, 2023
1 parent ba7b40b commit 361179c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const routes: RouteType[] = [

export const AppRouter = () => {
return (
<BrowserRouter>
<BrowserRouter basename='/shieldjs'>
<Routes>
{routes.map(({ key, path, element }: RouteType) => (
<Route key={key} path={path} element={element} />
Expand Down

0 comments on commit 361179c

Please sign in to comment.