Configure Plausible
This commit is contained in:
@@ -13,7 +13,9 @@ const nextConfig = {
|
|||||||
output: "standalone",
|
output: "standalone",
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
const { withPlausibleProxy } = require('next-plausible')
|
||||||
|
|
||||||
|
module.exports = withPlausibleProxy()(nextConfig);
|
||||||
|
|
||||||
|
|
||||||
// Injected content via Sentry wizard below
|
// Injected content via Sentry wizard below
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import PlausibleProvider from 'next-plausible'
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
@@ -16,6 +16,9 @@ export default function RootLayout({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<PlausibleProvider domain="pi.avanto.tk" />
|
||||||
|
</head>
|
||||||
<body className={inter.className}>
|
<body className={inter.className}>
|
||||||
{children}
|
{children}
|
||||||
</body>
|
</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