The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove suspense, use prisma
Steven Teya5b5b97b5842
diff --git a/app/dub.sh/page.tsx b/app/dub.sh/page.tsxindex d4b112cd15..911d77a983 100644--- a/app/dub.sh/page.tsx+++ b/app/dub.sh/page.tsx@@ -5,6 +5,8 @@ import Globe from "#/ui/home/globe";import Hero from "#/ui/home/hero";import Logos from "#/ui/home/logos";import Pricing from "#/ui/home/pricing";+import OSS from "#/ui/home/oss";+import Testimonials from "#/ui/home/testimonials";export default function Home() {return (@@ -15,7 +17,11 @@ export default function Home() {<Logos /><Globe /><Features />+ {/* @ts-expect-error Async Server Component */}+ <Testimonials /><Pricing homePage />+ {/* @ts-expect-error Async Server Component */}+ <OSS /></div><Background /></>diff --git a/app/ui/home/testimonials.tsx b/app/ui/home/testimonials.tsxindex f53b97d8e1..e968603b6b 100644--- a/app/ui/home/testimonials.tsx+++ b/app/ui/home/testimonials.tsx@@ -1,4 +1,4 @@-import { conn } from "@/lib/planetscale";+import prisma from "@/lib/prisma";import { nFormatter } from "@/lib/utils";import getTweetsMetadata, { homepageTweets } from "#/lib/twitter";import MaxWidthWrapper from "@/components/shared/max-width-wrapper";@@ -6,15 +6,7 @@ import Tweet from "#/ui/tweet";import TestimonialsMobile from "./testimonials-mobile";export default async function Testimonials() {- let userCount = 6000;- try {- if (conn) {- userCount = (await conn.execute("SELECT COUNT(id) FROM User")).rows[0][- "count(id)"- ];- }- } catch (_) {}-+ const userCount = await prisma.user.count();const tweets = await getTweetsMetadata(homepageTweets);return (