Skip to content

Commit 45cf3b9

Browse files
committed
fix: add basepath to router config
1 parent 0477280 commit 45cf3b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { RouterProvider, createRouter } from '@tanstack/react-router'
44
import { routeTree } from './routeTree.gen'
55
import './index.css'
66

7-
const router = createRouter({ routeTree })
7+
const router = createRouter({
8+
routeTree,
9+
basepath: import.meta.env.BASE_URL,
10+
})
811

912
declare module '@tanstack/react-router' {
1013
interface Register {

0 commit comments

Comments
 (0)