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.

Update bitly.ts

Kiran Kfb53a87da524
diff --git a/apps/web/lib/middleware/bitly.ts b/apps/web/lib/middleware/bitly.ts
index 82f3ed1160..67c7b7aab3 100644
--- a/apps/web/lib/middleware/bitly.ts
+++ b/apps/web/lib/middleware/bitly.ts
@@ -46,9 +46,6 @@ export const importBitlyLink = async (shortKey: string) => {
}
if (!link) {
- console.error(
- "[Bitly] Error retrieving Bitly link - not found in any domain",
- );
return null;
}
@@ -134,6 +131,7 @@ async function fetchBitlyLink({
);
if (!response.ok) {
+ console.error(`[Bitly] Link ${domain}/${shortKey} not found.`);
return null;
}