The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fix
Kiran K4a114cd127b1
diff --git a/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx b/apps/web/app/app.dub.co/embed/dashboard/page-client.tsxindex 456f97383c..af3745615c 100644--- a/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/dashboard/page-client.tsx@@ -36,12 +36,10 @@ export function RewardDashboardPageClient({start,end,interval = "30d",- token,} = searchParamsObj as {start?: string;end?: string;interval?: IntervalOptions;- token?: string;};return (diff --git a/apps/web/lib/fetchers/get-content-api.ts b/apps/web/lib/fetchers/get-content-api.tsindex d0649af38f..6c8c66e001 100644--- a/apps/web/lib/fetchers/get-content-api.ts+++ b/apps/web/lib/fetchers/get-content-api.ts@@ -1,5 +1,9 @@import { cache } from "react";export const getContentAPI = cache(async () => {- return []+ return await fetch("https://dub.co/api/content", {+ next: {+ revalidate: 60 * 60 * 24, // cache for 24 hours+ },+ }).then((res) => res.json());});diff --git a/apps/web/ui/layout/toolbar/toolbar.tsx b/apps/web/ui/layout/toolbar/toolbar.tsxindex 23d697857d..adf1de563c 100644--- a/apps/web/ui/layout/toolbar/toolbar.tsx+++ b/apps/web/ui/layout/toolbar/toolbar.tsx@@ -19,10 +19,14 @@ export default function Toolbar(props: ToolbarProps) {}async function ToolbarRSC({ show = ["onboarding", "help"] }: ToolbarProps) {- const { popularHelpArticles, allHelpArticles } = {- popularHelpArticles: [],- allHelpArticles: [],- };+ const { popularHelpArticles, allHelpArticles } = await fetch(+ "https://dub.co/api/content",+ {+ next: {+ revalidate: 60 * 60 * 24, // cache for 24 hours+ },+ },+ ).then((res) => res.json());return (<div className="flex items-center gap-3">