The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix
Steven Tey0ef6b45a5ffc
diff --git a/app/robots.ts b/app/robots.tsindex 38d07f5fa6..a32e5ac2e9 100644--- a/app/robots.ts+++ b/app/robots.ts@@ -1,11 +1,9 @@import { MetadataRoute } from "next";import { headers } from "next/headers";-import { isHomeHostname } from "#/lib/constants";export default function robots(): MetadataRoute.Robots {const headersList = headers();let domain = headersList.get("host") as string;- if (isHomeHostname(domain)) domain = "dub.co";return {rules: {@@ -13,6 +11,6 @@ export default function robots(): MetadataRoute.Robots {disallow: "/api/",allow: "/api/og/",},- sitemap: `https://${domain}/sitemap.xml`,+ sitemap: `https://dub.co/sitemap.xml`,};}diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].tsindex be8751d9d3..43d004ab66 100644--- a/pages/api/edge/links/[key]/stats/[endpoint].ts+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts@@ -2,7 +2,7 @@ import type { NextRequest } from "next/server";import { getStats } from "#/lib/stats";import { getLinkViaEdge } from "#/lib/planetscale";import { ipAddress } from "@vercel/edge";-import { LOCALHOST_IP, isHomeHostname } from "#/lib/constants";+import { LOCALHOST_IP } from "#/lib/constants";import { ratelimit } from "#/lib/upstash";import { isBlacklistedReferrer } from "#/lib/edge-config";