The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
return 404 if link not found
Steven Teyab406ac00005
diff --git a/apps/web/app/api/links/info/route.ts b/apps/web/app/api/links/info/route.tsindex d036ec8030..2ce3ba8b63 100644--- a/apps/web/app/api/links/info/route.ts+++ b/apps/web/app/api/links/info/route.ts@@ -16,6 +16,11 @@ export const GET = withAuth(async ({ headers, searchParams }) => {user: true,},});+ if (!response) {+ return new Response("Link not found.", {+ status: 404,+ });+ }return NextResponse.json(response, {headers,});