Support Next.js template & template hub (#241)

This commit is contained in:
Will Chen
2025-05-27 00:16:30 -07:00
committed by GitHub
parent 8cfd476ea9
commit a915d892f7
8 changed files with 361 additions and 12 deletions

9
src/routes/hub.ts Normal file
View File

@@ -0,0 +1,9 @@
import { Route } from "@tanstack/react-router";
import HubPage from "../pages/hub"; // Assuming HubPage is in src/pages/hub.tsx
import { rootRoute } from "./root"; // Assuming rootRoute is defined in src/routes/root.ts
export const hubRoute = new Route({
getParentRoute: () => rootRoute,
path: "/hub",
component: HubPage,
});