diff --git a/next.config.mjs b/next.config.mjs index fb69de55..e38966bf 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,5 @@ import bundleAnalyzer from '@next/bundle-analyzer'; +import { withPlausibleProxy as plausibleProxy } from 'next-plausible'; import Icons from 'unplugin-icons/webpack'; /** @type {import('next').NextConfig} */ @@ -54,8 +55,13 @@ const nextConfig = { ]; }, }; + const withBundleAnalyzer = bundleAnalyzer({ enabled: process.env.ANALYZE === 'true', }); -export default withBundleAnalyzer(nextConfig); +const withPlausibleProxy = plausibleProxy({ + customDomain: 'https://analytics.hikka.io', +}); + +export default withBundleAnalyzer(withPlausibleProxy(nextConfig)); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b6b9c5f7..3d486012 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -91,7 +91,7 @@ const RootLayout = ({ children }: Props) => { trackLocalhost enabled selfHosted - customDomain="" + customDomain="https://analytics.hikka.io" domain="hikka.io" />