diff --git a/next.config.js b/next.config.js index 3997e9ac0..e482803f6 100644 --- a/next.config.js +++ b/next.config.js @@ -59,5 +59,9 @@ const withNextAnalyser = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true', }); +// https://plausible.io/docs/proxy/guides/nextjs +// eslint-disable-next-line @typescript-eslint/no-var-requires +const { withPlausibleProxy } = require('next-plausible'); + // eslint-disable-next-line functional/immutable-data -module.exports = withNextAnalyser(moduleExports); +module.exports = withNextAnalyser(withPlausibleProxy()(moduleExports)); diff --git a/src/components/Providers.tsx b/src/components/Providers.tsx index 13791e16a..9732518ab 100644 --- a/src/components/Providers.tsx +++ b/src/components/Providers.tsx @@ -18,10 +18,7 @@ const Providers: React.FC<{ children: React.ReactNode }> = ({ children }) => { }, [disableDynamicMediaQueries]); return ( - + {globalStyles}