Skip to content

Commit

Permalink
fix: analytics events
Browse files Browse the repository at this point in the history
  • Loading branch information
devrsi0n committed May 2, 2023
1 parent c2992b0 commit 5ece64a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 24 deletions.
12 changes: 1 addition & 11 deletions apps/main/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@ const { withPlausibleProxy } = require('next-plausible');
const { RelativeCiAgentWebpackPlugin } = require('@relative-ci/agent');
const { withAxiom } = require('next-axiom');

const plugins = [
withBundleAnalyzer,
withPlausibleProxy({
customDomain: analyticsDomain,
trackOutboundLinks: true,
trackLocalhost: true,
selfHosted: true,
enabled: true,
}),
withAxiom,
];
const plugins = [withBundleAnalyzer, withPlausibleProxy(), withAxiom];

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand Down
2 changes: 1 addition & 1 deletion apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"next-axiom": "0.15.1",
"next-connect": "0.13.0",
"next-mdx-remote": "3.0.8",
"next-plausible": "3.6.4",
"next-plausible": "3.7.2",
"next-superjson-plugin": "0.5.7",
"next-themes": "0.2.1",
"nodemailer": "6.7.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"next-auth": "4.17.0",
"next-axiom": "0.15.1",
"next-mdx-remote": "3.0.8",
"next-plausible": "3.6.4",
"next-plausible": "3.7.2",
"next-themes": "0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/blocks/theme-editor/theme-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function ThemeEditor(props: ThemeEditorProps): JSX.Element {
await saveTheme(newTheme);
};
const primaryColorOptions = useColors({ level: '900' });
console.log({ widgetTheme });
return (
<section className="px-2">
<PageTitle className="mb-10">Theme of {props.project?.name}</PageTitle>
Expand Down
9 changes: 8 additions & 1 deletion packages/ui/src/pages/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ export const App = trpcClient.withTRPC(function App({
pageProps: { session, ...pageProps },
}: AppProps<PageProps>): JSX.Element {
return (
<PlausibleProvider domain={ANALYTICS_DOMAIN}>
<PlausibleProvider
domain={ANALYTICS_DOMAIN}
customDomain={process.env.NEXT_PUBLIC_ANALYTICS_DOMAIN}
trackOutboundLinks
trackLocalhost
selfHosted
enabled
>
<SessionProvider {...(session && { session })}>
<NextThemesProvider
attribute="class"
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 5ece64a

@vercel
Copy link

@vercel vercel bot commented on 5ece64a May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.