The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
added catches
Steven Tey771cddcff0df
diff --git a/app/ui/home/globe.tsx b/app/ui/home/globe.tsxindex ee4904411c..ef30dbbbd1 100644--- a/app/ui/home/globe.tsx+++ b/app/ui/home/globe.tsx@@ -12,6 +12,7 @@ export default async function Globe() {}).then((res) => res.json()).then((res) => res.data)+ .catch(() => []): [];const markers = response.map(({ latitude, longitude }, idx) => {diff --git a/app/ui/home/oss.tsx b/app/ui/home/oss.tsxindex 57b8e71078..2f23a471f4 100644--- a/app/ui/home/oss.tsx+++ b/app/ui/home/oss.tsx@@ -18,7 +18,9 @@ export default async function OSS() {revalidate: 3600,},},- ).then((res) => res.json());+ )+ .then((res) => res.json())+ .catch(() => ({ stargazers_count: 10000 }));return <OSSSection stars={stars} />;}diff --git a/app/ui/home/stats.tsx b/app/ui/home/stats.tsxindex 880546c0c5..bc96242c9d 100644--- a/app/ui/home/stats.tsx+++ b/app/ui/home/stats.tsx@@ -21,6 +21,7 @@ export default async function Stats() {}).then((res) => res.json()).then((res) => res.data[0]["count(timestamp)"])+ .catch(() => 5000000): 5000000,]);