From 1cd942e7c4977be1538e2906f317a7ac682029da Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Mon, 8 Jul 2024 13:27:23 -0600 Subject: [PATCH] feat: setup optional plausible --- src/app/layout.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3e4b8135..e867b411 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,6 +24,8 @@ export default async function RootLayout({ }: Readonly<{ children: React.ReactNode; }>) { + const usePlausible = process.env.plausible; + const cookieStore = cookies(); const serverUrl = `${process.env.URL}/api/graphql`; @@ -36,6 +38,15 @@ export default async function RootLayout({ return ( + {usePlausible ? ( + +