Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

simplify plausible

Steven Tey6cf4e75bbc11
diff --git a/apps/web/app/providers.tsx b/apps/web/app/providers.tsx
index b16721e3aa..546fcd6f1d 100644
--- a/apps/web/app/providers.tsx
+++ b/apps/web/app/providers.tsx
@@ -27,15 +27,7 @@ export default function RootProviders({ children }: { children: ReactNode }) {
return (
<PostHogProvider client={posthog}>
- <PlausibleProvider
- domain="dub.co"
- revenue
- scriptProps={{
- src: "/_proxy/plausible/script.js",
- // @ts-ignore
- "data-api": "/_proxy/plausible/event",
- }}
- />
+ <PlausibleProvider domain="dub.co" revenue />
<TooltipProvider>
<KeyboardShortcutProvider>
<Toaster className="pointer-events-auto" closeButton />
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index f28638bb6d..b437f6786b 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -199,15 +199,6 @@ module.exports = withAxiom({
source: "/_proxy/dub/track/click",
destination: "https://api.dub.co/track/click",
},
- // for plausible proxy
- {
- source: "/_proxy/plausible/script.js",
- destination: "https://plausible.io/js/script.js",
- },
- {
- source: "/_proxy/plausible/event",
- destination: "https://plausible.io/api/event",
- },
];
},
});