mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(web): llms.txt, convex live stats, switch to vercel and improved ui (#460)
This commit is contained in:
18
apps/web/src/components/providers.tsx
Normal file
18
apps/web/src/components/providers.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
||||
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
||||
import { Toaster } from "@/components/ui/sonner";
|
||||
|
||||
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL || "");
|
||||
|
||||
export default function Providers({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<ConvexProvider client={convex}>
|
||||
<NuqsAdapter>{children}</NuqsAdapter>
|
||||
</ConvexProvider>
|
||||
<Toaster />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user