Configure Plausible

This commit is contained in:
Calli
2024-05-27 16:21:09 +03:00
parent d9562938be
commit 5d7b4d85d4
3 changed files with 7 additions and 13 deletions

View File

@@ -13,7 +13,9 @@ const nextConfig = {
output: "standalone",
};
module.exports = nextConfig;
const { withPlausibleProxy } = require('next-plausible')
module.exports = withPlausibleProxy()(nextConfig);
// Injected content via Sentry wizard below

View File

@@ -1,7 +1,7 @@
import "./globals.css";
import { Inter } from "next/font/google";
import React from 'react'
import PlausibleProvider from 'next-plausible'
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
@@ -16,6 +16,9 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
<PlausibleProvider domain="pi.avanto.tk" />
</head>
<body className={inter.className}>
{children}
</body>

View File

@@ -1,11 +0,0 @@
// pages/_app.js
/* eslint-disable react/prop-types */
import PlausibleProvider from 'next-plausible'
export default function MyApp({ Component, pageProps }) {
return (
<PlausibleProvider domain="pi.avanto.tk">
<Component {...pageProps} />
</PlausibleProvider>
)
}