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.

remove DUB_API_URL for now

Steven Tey50f8a42f74d2
diff --git a/apps/web/.env.example b/apps/web/.env.example
index 8a16df31b2..526548585c 100644
--- a/apps/web/.env.example
+++ b/apps/web/.env.example
@@ -119,7 +119,4 @@ PANGEA_API_KEY=
SLACK_APP_INSTALL_URL=
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
-SLACK_SIGNING_SECRET=
-
-# Dub API base URL override (e.g. https://api.dub.co or http://localhost:8888/api)
-DUB_API_URL=
\ No newline at end of file
+SLACK_SIGNING_SECRET=
\ No newline at end of file
diff --git a/apps/web/lib/actions/get-events.ts b/apps/web/lib/actions/get-events.ts
index 2e8035168f..335fadeffc 100644
--- a/apps/web/lib/actions/get-events.ts
+++ b/apps/web/lib/actions/get-events.ts
@@ -1,4 +1,3 @@
-import { DUB_API_URL } from "@dub/utils";
import { unstable_cache } from "next/cache";
import { EventType } from "../analytics/types";
@@ -24,7 +23,7 @@ export const getEvents = unstable_cache(
// });
return await fetch(
- `${DUB_API_URL}/events?event=${event}&interval=all&linkId=${linkId}&page=${page}`,
+ `https://api.dub.co/events?event=${event}&interval=all&linkId=${linkId}&page=${page}`,
{
headers: {
Authorization: `Bearer ${process.env.DUB_API_KEY}`,
diff --git a/packages/utils/src/constants/main.ts b/packages/utils/src/constants/main.ts
index 20f046aa9e..a598c86dbf 100644
--- a/packages/utils/src/constants/main.ts
+++ b/packages/utils/src/constants/main.ts
@@ -45,8 +45,6 @@ export const ADMIN_HOSTNAMES = new Set([
"admin.localhost:8888",
]);
-export const DUB_API_URL = process.env.DUB_API_URL || "https://api.dub.co";
-
export const DUB_LOGO = "https://assets.dub.co/logo.png";
export const DUB_WORDMARK = "https://assets.dub.co/wordmark.png";
export const DUB_THUMBNAIL = "https://assets.dub.co/thumbnail.jpg";