Skip to content

Commit bf4f1aa

Browse files
committed
fix docs
1 parent c6387cb commit bf4f1aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/docs/src/router.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
import { createHashHistory, createRouter as createTanStackRouter } from '@tanstack/react-router'
1+
import { createRouter as createTanStackRouter } from '@tanstack/react-router'
22

33
import { NotFound } from '@/components/not-found'
44
import { routeTree } from './routeTree.gen'
55

6-
const hashHistory = createHashHistory()
7-
86
export function getRouter() {
97
return createTanStackRouter({
108
routeTree,
119
defaultPreload: 'intent',
1210
scrollRestoration: true,
1311
defaultNotFoundComponent: NotFound,
14-
history: hashHistory,
12+
// basepath: import.meta.env.PROD ? '/duron' : '/',
1513
})
1614
}

0 commit comments

Comments
 (0)