The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix crawl route
Steven Teyc63f0431f4b0
diff --git a/apps/web/app/api/links/crawl/bitly/route.ts b/apps/web/app/api/links/crawl/bitly/route.tsindex e7da83c463..fa763813d2 100644--- a/apps/web/app/api/links/crawl/bitly/route.ts+++ b/apps/web/app/api/links/crawl/bitly/route.ts@@ -18,7 +18,7 @@ export const POST = async (req: Request) => {// @see: https://support.bitly.com/hc/en-us/articles/360030780892-What-characters-are-supported-when-customizing-linksconst invalidBitlyKeyRegex = /[`~,.<>;':"/\\[\]^{}()=+!*@&$£?%#|]/;if (invalidBitlyKeyRegex.test(key)) {- return NextResponse.json({ error: "Invalid key" }, { status: 400 });+ return NextResponse.json({ error: "Not found" }, { status: 404 });}const link = await crawlBitlyLink({ domain, key, workspaceId });