diff --git a/Dockerfile b/Dockerfile index f5e4d56..e06c883 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN npm install --silent COPY . . ARG NEXT_PUBLIC_CONVEX_URL +ARG NEXT_PUBLIC_ENABLE_PLAUSIBLE ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production diff --git a/app/provider.tsx b/app/provider.tsx index b9e9d2c..a574c5a 100644 --- a/app/provider.tsx +++ b/app/provider.tsx @@ -3,15 +3,21 @@ import { ConvexAuthNextjsProvider } from "@convex-dev/auth/nextjs"; import { ConvexReactClient } from "convex/react"; import { ThemeProvider } from "next-themes"; +import PlausibleProvider from "next-plausible"; const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!); export function Providers({ children }: { children: React.ReactNode }) { return ( - - - {children} - - + + + + {children} + + + ); } diff --git a/package.json b/package.json index 7748fd0..d0810f5 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "date-fns": "^4.1.0", "lucide-react": "^0.453.0", "next": "14.2.5", + "next-plausible": "^3.12.2", "next-themes": "^0.3.0", "openai": "^4.67.3", "react": "^18",