Configure Plausible
This commit is contained in:
@@ -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
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user