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 ( - - - - ) -}