feat: Add Plausible to site

This commit is contained in:
Jesse Wierzbinski 2025-01-01 00:52:37 +01:00
parent 8a837f0546
commit e754c2ff6a
No known key found for this signature in database
3 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import glob from "fast-glob";
import type { Metadata } from "next";
import PlausibleProvider from "next-plausible";
import { Layout } from "../components/Layout";
import type { Section } from "../components/SectionProvider";
import { Providers } from "./providers";
@ -46,6 +47,13 @@ export default async function RootLayout({
<html lang="en" className="h-full" suppressHydrationWarning={true}>
<head>
<link rel="icon" href="/favicon.png" type="image/png" />
<PlausibleProvider
domain="logs.cpluspatch.com"
customDomain="https://logs.cpluspatch.com"
trackOutboundLinks={true}
trackLocalhost={false}
selfHosted={true}
/>
</head>
<body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
<Providers>

BIN
bun.lockb

Binary file not shown.

View file

@ -33,6 +33,7 @@
"mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4",
"next": "^14.2.13",
"next-plausible": "^3.12.4",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",