17 lines
528 B
TypeScript
17 lines
528 B
TypeScript
|
|
import ErrorBoundary from "@/components/error-boundary";
|
||
|
|
import NotFound from "@/components/not-found";
|
||
|
|
import Loading from "@/components/loading";
|
||
|
|
import { createRouter, createHashHistory } from "@tanstack/react-router";
|
||
|
|
import { routeTree } from "./routeTree.gen";
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
routeTree,
|
||
|
|
history: createHashHistory(),
|
||
|
|
basepath: import.meta.env.VITE_BASEPATH,
|
||
|
|
defaultNotFoundComponent: NotFound,
|
||
|
|
defaultErrorComponent: ErrorBoundary,
|
||
|
|
defaultPendingComponent: Loading,
|
||
|
|
});
|
||
|
|
|
||
|
|
export default router;
|