mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-30 14:41:16 +00:00
13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
import { createRouter as createTanStackRouter } from '@tanstack/react-router';
|
|
import { routeTree } from './routeTree.gen';
|
|
import { NotFound } from '@/components/not-found';
|
|
|
|
export function getRouter() {
|
|
return createTanStackRouter({
|
|
routeTree,
|
|
defaultPreload: 'intent',
|
|
scrollRestoration: true,
|
|
defaultNotFoundComponent: NotFound,
|
|
});
|
|
}
|