Skip to content

Commit 1c0dc92

Browse files
committed
adjust routing for login
1 parent ca4da58 commit 1c0dc92

File tree

2 files changed

+2
-34
lines changed

2 files changed

+2
-34
lines changed

ui/src/router.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
import { createRouter } from '@tanstack/react-router';
2-
import { routeTree } from './routeTree.gen';
3-
import { terraformRoute } from '@/routes/manual/terraformWellKnown';
4-
5-
6-
const existingChildren = (routeTree as any).children ?? [] // internal but fine
7-
8-
const mixedTree = routeTree.addChildren([
9-
...existingChildren, // keep all file-based routes
10-
terraformRoute, // add your manual route
11-
])
2+
import { routeTree } from './routeTree.gen';
123

134
export function getRouter() {
145

156
return createRouter({
16-
routeTree: mixedTree,
7+
routeTree: routeTree,
178
scrollRestoration: true,
189
});
1910
}

ui/src/routes/manual/terraformWellKnown.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)