The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add special case for root domain links
Steven Tey7547a83ae00a
diff --git a/packages/utils/src/functions/keys.ts b/packages/utils/src/functions/keys.tsindex 4bf5ddad21..858980aa90 100644--- a/packages/utils/src/functions/keys.ts+++ b/packages/utils/src/functions/keys.ts@@ -4,6 +4,10 @@ export const validKeyRegex = new RegExp();export const isUnsupportedKey = (key: string) => {+ // special case for root domain links+ if (key === "_root") {+ return false;+ }const excludedPrefix = [".well-known", "_"];const excludedSuffix = [".php", ".php7"];return (