Files
tuono/packages/tuono-react-vite-plugin/tests/generator/mdx/routeTree.expected.ts
T
2025-05-11 19:11:30 +02:00

36 lines
885 B
TypeScript

// This file is auto-generated by Tuono
import { createRoute, __tuono__internal__lazyLoadRoute } from 'tuono'
import RootLayoutImport from './routes/__layout'
const AboutImport = __tuono__internal__lazyLoadRoute(
() => import('./routes/about.mdx'),
)
const IndexImport = __tuono__internal__lazyLoadRoute(
() => import('./routes/index'),
)
const rootRoute = createRoute({ isRoot: true, component: RootLayoutImport })
const About = createRoute({ component: AboutImport })
const Index = createRoute({ component: IndexImport })
// Create/Update Routes
const AboutRoute = About.update({
path: '/about',
getParentRoute: () => rootRoute,
filePath: '/about',
})
const IndexRoute = Index.update({
path: '/',
getParentRoute: () => rootRoute,
filePath: '/',
})
// Create and export the route tree
export const routeTree = rootRoute.addChildren([IndexRoute, AboutRoute])