The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Added back NEXT_PUBLIC_DEMO_APP env var
Steven Tey04b3a63f8f5d
diff --git a/components/link-card.tsx b/components/link-card.tsxindex c868f22bc9..79623a6600 100644--- a/components/link-card.tsx+++ b/components/link-card.tsx@@ -13,7 +13,9 @@ export default function LinkCard({url: string;}) {const shortURL = `${- process.env.NEXT_PUBLIC_VERCEL === "1"+ process.env.NEXT_PUBLIC_DEMO_APP === "1"+ ? "https://dub.sh"+ : process.env.NEXT_PUBLIC_VERCEL === "1"? process.env.NEXT_PUBLIC_VERCEL_URL: "http://localhost:3000"}/${key}`; // if you're self-hosting you can just replace this with your own domain