Skip to content

Remove Plausible analytics integration #7525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 19 additions & 25 deletions apps/dashboard/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,35 +208,29 @@ function getConfig(): NextConfig {
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withPlausibleProxy } = require("next-plausible");

// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withSentryConfig } = require("@sentry/nextjs");
return withBundleAnalyzer(
withPlausibleProxy({
customDomain: "https://pl.thirdweb.com",
scriptName: "pl",
})(
withSentryConfig(
{
...baseNextConfig,
// @ts-expect-error - this is a valid option
webpack: (config) => {
if (config.cache) {
config.cache = Object.freeze({
type: "memory",
});
}
config.module = {
...config.module,
exprContextCritical: false,
};
// Important: return the modified config
return config;
},
withSentryConfig(
{
...baseNextConfig,
// @ts-expect-error - this is a valid option
webpack: (config) => {
if (config.cache) {
config.cache = Object.freeze({
type: "memory",
});
}
config.module = {
...config.module,
exprContextCritical: false,
};
// Important: return the modified config
return config;
},
SENTRY_OPTIONS,
),
},
SENTRY_OPTIONS,
),
);
}
Expand Down
1 change: 0 additions & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"ipaddr.js": "^2.2.0",
"lucide-react": "0.525.0",
"next": "15.3.5",
"next-plausible": "^3.12.4",
"next-themes": "^0.4.6",
"nextjs-toploader": "^1.6.12",
"nuqs": "^2.4.3",
Expand Down
9 changes: 0 additions & 9 deletions apps/dashboard/src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "../../global.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import PlausibleProvider from "next-plausible";
import NextTopLoader from "nextjs-toploader";
import { DashboardRouterTopProgressBar } from "@/lib/DashboardRouter";
import { cn } from "@/lib/utils";
Expand Down Expand Up @@ -52,14 +51,6 @@ export default function RootLayout({
}) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<PlausibleProvider
customDomain="https://pl.thirdweb.com"
domain="thirdweb.com"
selfHosted
/>
</head>

<body
className={cn("bg-background font-sans antialiased", fontSans.variable)}
>
Expand Down
10 changes: 0 additions & 10 deletions apps/playground-web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Metadata } from "next";
import { Fira_Code, Inter } from "next/font/google";
import Script from "next/script";
import { metadataBase } from "@/lib/constants";
import { cn } from "@/lib/utils";
import { AppSidebar } from "./AppSidebar";
Expand Down Expand Up @@ -36,15 +35,6 @@ export default async function RootLayout({
const sidebarLinks = getSidebarLinks();
return (
<html lang="en" suppressHydrationWarning>
<head>
<Script
data-api="https://pl.thirdweb.com/api/event"
data-domain="playground.thirdweb.com"
defer
src="https://thirdweb.com/js/pl.js"
/>
</head>

<body
className={cn(
"bg-background font-sans antialiased ",
Expand Down
10 changes: 0 additions & 10 deletions apps/portal/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import "./globals.css";
import { Fira_Code, Inter } from "next/font/google";
import Script from "next/script";
import { ThemeProvider } from "next-themes";
import NextTopLoader from "nextjs-toploader";
import { createMetadata } from "@/components/Document";
Expand Down Expand Up @@ -34,15 +33,6 @@ export default function RootLayout({
}) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<Script
data-api="https://pl.thirdweb.com/api/event"
data-domain="portal.thirdweb.com"
defer
src="https://thirdweb.com/js/pl.js"
/>
</head>

<body
className={cn(sansFont.variable, monoFont.variable, "font-sans")}
suppressHydrationWarning
Expand Down
16 changes: 0 additions & 16 deletions pnpm-lock.yaml

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

Loading