The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix #515
Steven Tey7632c9c63f94
diff --git a/apps/web/app/api/stats/[endpoint]/route.ts b/apps/web/app/api/stats/[endpoint]/route.tsindex d3c914f735..950076c103 100644--- a/apps/web/app/api/stats/[endpoint]/route.ts+++ b/apps/web/app/api/stats/[endpoint]/route.ts@@ -19,6 +19,11 @@ export const GET = withAuth(return new Response("Missing link key.", { status: 400 });}+ // return 403 if interval is 90d or all+ if (project.plan === "free" && (interval === "all" || interval === "90d")) {+ return new Response(`Require higher plan`, { status: 403 });+ }+const response = await getStats({domain: constructedDomain,key,