mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
refactor: move from next js to vite and tanstack router
This commit is contained in:
14
apps/ui/src/utils/router.ts
Normal file
14
apps/ui/src/utils/router.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createRouter, createMemoryHistory } from "@tanstack/react-router";
|
||||
import { routeTree } from "../routeTree.gen";
|
||||
|
||||
export const router = createRouter({
|
||||
routeTree,
|
||||
defaultPendingMinMs: 0,
|
||||
history: createMemoryHistory({ initialEntries: ["/"] }),
|
||||
});
|
||||
|
||||
declare module "@tanstack/react-router" {
|
||||
interface Register {
|
||||
router: typeof router;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user