We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da8c45 commit 087ece6Copy full SHA for 087ece6
src/index.tsx
@@ -1,4 +1,8 @@
1
-import { createRouter, RouterProvider } from "@tanstack/react-router"
+import {
2
+ createHashHistory,
3
+ createRouter,
4
+ RouterProvider,
5
+} from "@tanstack/react-router"
6
import ReactDOM from "react-dom/client"
7
import { routeTree } from "./routeTree.gen"
8
import "./index.css"
@@ -8,6 +12,7 @@ const router = createRouter({
12
routeTree,
9
13
defaultPreload: "intent",
10
14
scrollRestoration: true,
15
+ history: createHashHistory(), // gh pages
11
16
})
17
18
// Register things for typesafety
0 commit comments