Files
buzz/web/src/app/router.tsx
2026-05-04 12:49:48 -07:00

18 lines
429 B
TypeScript

import { createBrowserHistory, createRouter } from "@tanstack/react-router";
import { routeTree } from "@/app/routeTree.gen";
export const router = createRouter({
routeTree,
history: createBrowserHistory(),
scrollRestoration: true,
getScrollRestorationKey: (location: { pathname: string }) =>
location.pathname,
});
declare module "@tanstack/react-router" {
interface Register {
router: typeof router;
}
}