feat(web-tanstack): add TanStack Start app shell with tRPC client
This commit is contained in:
10
apps/web-tanstack/src/routes/__root.tsx
Normal file
10
apps/web-tanstack/src/routes/__root.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Outlet, createRootRoute } from "@tanstack/react-router";
|
||||
import { ApiProvider } from "@repo/api-client";
|
||||
|
||||
export const Route = createRootRoute({
|
||||
component: () => (
|
||||
<ApiProvider trpcUrl="http://localhost:3000/api/trpc">
|
||||
<Outlet />
|
||||
</ApiProvider>
|
||||
),
|
||||
});
|
||||
Reference in New Issue
Block a user