mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
30 lines
761 B
TypeScript
30 lines
761 B
TypeScript
// This file is auto-generated by Tuono
|
|
|
|
import { createRoute, dynamic } from 'tuono'
|
|
|
|
import RootLayoutImport from './routes/__layout'
|
|
|
|
const AboutImport = dynamic(() => import('./routes/about.mdx'))
|
|
const IndexImport = dynamic(() => 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,
|
|
})
|
|
|
|
const IndexRoute = Index.update({
|
|
path: '/',
|
|
getParentRoute: () => rootRoute,
|
|
})
|
|
|
|
// Create and export the route tree
|
|
|
|
export const routeTree = rootRoute.addChildren([IndexRoute, AboutRoute])
|