Skip to content

Commit

Permalink
Merge pull request #7 from Pettor/feature/hash-router
Browse files Browse the repository at this point in the history
feat: use hashrouter to support github pages
  • Loading branch information
Pettor authored Feb 16, 2024
2 parents 948beb2 + 729dcff commit 543de99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/routes/AppRoutes.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import type { ReactElement } from "react";
import { RouterProvider, Route, createBrowserRouter, createRoutesFromElements, Outlet } from "react-router-dom";
import { RouterProvider, Route, createRoutesFromElements, Outlet, createHashRouter } from "react-router-dom";
import { GlobalRoutes } from "./GlobalRoutes";

export function AppRoutes(): ReactElement {
return (
<RouterProvider
router={createBrowserRouter(
router={createHashRouter(
createRoutesFromElements(
<Route path="/" element={<Outlet />}>
<Route>
Expand Down

0 comments on commit 543de99

Please sign in to comment.