The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update record-click.ts
Steven Tey1d56848cb61e
diff --git a/apps/web/lib/tinybird/record-click.ts b/apps/web/lib/tinybird/record-click.tsindex d2eb4c8a6b..38ac5a17af 100644--- a/apps/web/lib/tinybird/record-click.ts+++ b/apps/web/lib/tinybird/record-click.ts@@ -77,7 +77,7 @@ export async function recordClick({: LOCALHOST_GEO_DATA.continent;const geo =process.env.VERCEL === "1" ? geolocation(req) : LOCALHOST_GEO_DATA;- const isEuCountry = geo?.country && EU_COUNTRY_CODES.includes(geo.country);+ const isEuCountry = geo.country && EU_COUNTRY_CODES.includes(geo.country);const ua = userAgent(req);const referer = req.headers.get("referer");