The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update crawl
Steven Tey5a2505381f95
diff --git a/apps/web/app/api/links/crawl/bitly/route.ts b/apps/web/app/api/links/crawl/bitly/route.tsindex 37336eaf16..5eefb3998c 100644--- a/apps/web/app/api/links/crawl/bitly/route.ts+++ b/apps/web/app/api/links/crawl/bitly/route.ts@@ -19,6 +19,10 @@ export const POST = async (req: Request) => {}).parse(body);+ if (domain !== "buff.ly") {+ return NextResponse.json({ error: "Not found" }, { status: 404 });+ }+// bitly doesn't support the following characters: ` ~ , . < > ; ‘ : “ / \ [ ] ^ { } ( ) = + ! * @ & $ £ ? % # |// @see: https://support.bitly.com/hc/en-us/articles/360030780892-What-characters-are-supported-when-customizing-linksconst invalidBitlyKeyRegex = /[`~,.<>;':"/\\[\]^{}()=+!*@&$£?%#|]/;