The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
set max-age=31536000, remove dub_product
Steven Tey6f5f7d84bcaf
diff --git a/apps/web/app/api/supported-countries/route.ts b/apps/web/app/api/supported-countries/route.tsindex c237607377..60e34f3e68 100644--- a/apps/web/app/api/supported-countries/route.ts+++ b/apps/web/app/api/supported-countries/route.ts@@ -18,7 +18,8 @@ export async function GET() {return NextResponse.json(sorted, {headers: {"Access-Control-Allow-Origin": "*",- "Cache-Control": "public, max-age=86400",+ // cache indefinitely till next deployment+ "Cache-Control": "public, max-age=31536000, s-maxage=31536000",},});}diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsxindex 08ade395f7..363428cd5f 100644--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx@@ -96,10 +96,6 @@ const NAV_GROUPS: SidebarNavGroups<SidebarNavData> = ({pathname.startsWith(`/${slug}`) &&!pathname.startsWith(`/${slug}/program`) &&!pathname.startsWith(`/${slug}/settings`),-- onClick: () => {- document.cookie = `dub_product:${slug}=links;path=/;max-age=${FIVE_YEARS_SECONDS}`;- },},{name: "Partner Program",@@ -110,12 +106,6 @@ const NAV_GROUPS: SidebarNavGroups<SidebarNavData> = ({href: slug ? `/${slug}/program` : "/program",active: pathname.startsWith(`/${slug}/program`),popup: DubPartnersPopup,-- onClick: defaultProgramId- ? () => {- document.cookie = `dub_product:${slug}=program;path=/;max-age=${FIVE_YEARS_SECONDS}`;- }- : undefined,},];