mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +00:00
- Bump @hanzo/docs-mdx 14.2.11 -> 14.3.1 (surpass orphaned 14.3.0 on npm) - Bump @hanzo/docs-docgen 3.0.8 -> 3.1.1 (surpass orphaned 3.1.0 on npm) - Set changeset access to public for scoped @hanzo/* packages - Update create-app templates to use getPageMarkdownUrl() helper
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,
|
|
});
|
|
}
|