The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
removed another getDomain()
Steven Tey188568779c29
diff --git a/app/dub.sh/stats/[key]/page.tsx b/app/dub.sh/stats/[key]/page.tsxindex 40ab81d095..1be758e264 100644--- a/app/dub.sh/stats/[key]/page.tsx+++ b/app/dub.sh/stats/[key]/page.tsx@@ -1,6 +1,4 @@-import { headers } from "next/headers";import { notFound } from "next/navigation";-import { getDomain } from "@/lib/utils";import { getLinkViaEdge } from "@/lib/planetscale";import Stats from "#/ui/stats";@@ -48,8 +46,7 @@ export default async function StatsPage({}: {params: { key: string };}) {- const domain = getDomain(headers());- const data = await getLinkViaEdge(domain, params.key);+ const data = await getLinkViaEdge("dub.sh", params.key);if (!data || !data.publicStats) {notFound();@@ -57,7 +54,7 @@ export default async function StatsPage({return (<div className="bg-gray-50">- <Stats staticDomain={domain} />+ <Stats staticDomain="dub.sh" /></div>);}