From 5d7b4d85d425abbcf7f57f40ab7c1d9af8f23523 Mon Sep 17 00:00:00 2001 From: Calli Date: Mon, 27 May 2024 16:21:09 +0300 Subject: [PATCH] Configure Plausible --- next.config.js | 4 +++- src/app/layout.tsx | 5 ++++- src/pages/_app.jsx | 11 ----------- 3 files changed, 7 insertions(+), 13 deletions(-) delete mode 100644 src/pages/_app.jsx diff --git a/next.config.js b/next.config.js index 0228fb4..850eeeb 100644 --- a/next.config.js +++ b/next.config.js @@ -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 diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 726e6de..f1923f7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -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 ( + + + {children} diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx deleted file mode 100644 index fe41f67..0000000 --- a/src/pages/_app.jsx +++ /dev/null @@ -1,11 +0,0 @@ -// pages/_app.js -/* eslint-disable react/prop-types */ -import PlausibleProvider from 'next-plausible' - -export default function MyApp({ Component, pageProps }) { - return ( - - - - ) -}