Skip to content

Commit

Permalink
fix: sent event directly to analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Aug 1, 2024
1 parent 7074de6 commit 733ea0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -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} */
Expand Down Expand Up @@ -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));
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const RootLayout = ({ children }: Props) => {
trackLocalhost
enabled
selfHosted
customDomain=""
customDomain="https://analytics.hikka.io"
domain="hikka.io"
/>
</head>
Expand Down

0 comments on commit 733ea0d

Please sign in to comment.