The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
getApexDomain of destination URL
Steven Tey336135d458b7
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.tsindex fc0bd938a3..eb13d166a9 100644--- a/apps/web/lib/zod/schemas/customers.ts+++ b/apps/web/lib/zod/schemas/customers.ts@@ -134,6 +134,7 @@ export const CustomerEnrichedSchema = CustomerSchema.extend({domain: true,key: true,shortLink: true,+ url: true,programId: true,}).nullish(),programId: z.string().nullish(),diff --git a/apps/web/ui/customers/customer-table/customer-table.tsx b/apps/web/ui/customers/customer-table/customer-table.tsxindex b5f4a44dac..c97c8d2af0 100644--- a/apps/web/ui/customers/customer-table/customer-table.tsx+++ b/apps/web/ui/customers/customer-table/customer-table.tsx@@ -31,6 +31,7 @@ import {currencyFormatter,fetcher,formatDate,+ getApexDomain,getPrettyUrl,} from "@dub/utils";import { Cell, Row } from "@tanstack/react-table";@@ -183,7 +184,7 @@ export function CustomerTable() {className="flex cursor-alias items-center gap-3 decoration-dotted underline-offset-2 hover:underline"><LinkLogo- apexDomain={row.original.link.domain}+ apexDomain={getApexDomain(row.original.link.url)}className="size-4 shrink-0 sm:size-4"/><span className="truncate" title={row.original.link.shortLink}>