Skip to content

Commit

Permalink
fix: specify router base path
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrindle committed Dec 3, 2024
1 parent 5143aca commit d5dbefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRouter } from '@tanstack/react-router'
import { routeTree } from './routeTree.gen'

const router = createRouter({ routeTree })
const router = createRouter({ routeTree, basepath: import.meta.env.BASE_URL })

// Register the router instance for type safety
declare module '@tanstack/react-router' {
Expand Down

0 comments on commit d5dbefe

Please sign in to comment.