mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
feat: ✨ Add Plausible to site
This commit is contained in:
parent
8a837f0546
commit
e754c2ff6a
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue