diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index e1d79d5..699f9f6 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -208,3 +208,12 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() + +import type { getRouter } from './router.tsx' +import type { createStart } from '@tanstack/react-start' +declare module '@tanstack/react-start' { + interface Register { + ssr: true + router: Awaited> + } +} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 74c8f8a..de705b2 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -1,4 +1,5 @@ import { Outlet, Link, createRootRoute, HeadContent, Scripts } from "@tanstack/react-router"; +import { AuthProvider } from "@/lib/auth"; import appCss from "../styles.css?url"; @@ -67,5 +68,9 @@ function RootShell({ children }: { children: React.ReactNode }) { } function RootComponent() { - return ; + return ( + + + + ); }