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.

missed a spot

Steven Tey1502d5a39311
diff --git a/apps/web/lib/actions/get-total-events.ts b/apps/web/lib/actions/get-total-events.ts
index 41b1941cff..90bad021a3 100644
--- a/apps/web/lib/actions/get-total-events.ts
+++ b/apps/web/lib/actions/get-total-events.ts
@@ -1,4 +1,3 @@
-import { DUB_API_URL } from "@dub/utils";
import { unstable_cache } from "next/cache";
export const getTotalEvents = unstable_cache(async (linkId: string) => {
@@ -9,7 +8,7 @@ export const getTotalEvents = unstable_cache(async (linkId: string) => {
// })
return await fetch(
- `${DUB_API_URL}/analytics?event=composite&groupBy=count&interval=all_unfiltered&linkId=${linkId}`,
+ `https://api.dub.co/analytics?event=composite&groupBy=count&interval=all_unfiltered&linkId=${linkId}`,
{
headers: {
Authorization: `Bearer ${process.env.DUB_API_KEY}`,