Open History to see the last commit
1import {
2 defineVirtualSubtreeConfig,
3 index,
4 physical,
5 route,
6} from '@tanstack/virtual-file-routes'
7β
8// this just shows that you can use an async function to define your virtual routes
9export default defineVirtualSubtreeConfig(async () => [
10 index('home.tsx'),
11 route('$postId', 'details.tsx'),
12 physical('/inception', 'lets-go'),
13])