The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
changed status code
Steven Tey108ed3058a68
diff --git a/pages/api/links/[key]/index.ts b/pages/api/links/[key]/index.tsindex a836014f97..909dc8fcaf 100644--- a/pages/api/links/[key]/index.ts+++ b/pages/api/links/[key]/index.ts@@ -17,6 +17,7 @@ export default async function handler(if (target) {ev.waitUntil(redis.hincrby("stats", key, 1)); // increment click countreturn NextResponse.redirect(target, {+ status: 308,headers: {"cache-control":"public, s-maxage=31536000, stale-while-revalidate=31536000",