diff --git a/apps/dashboard/src/@/api/analytics.ts b/apps/dashboard/src/@/api/analytics.ts index 19e7fb21a74..c2ea80074c4 100644 --- a/apps/dashboard/src/@/api/analytics.ts +++ b/apps/dashboard/src/@/api/analytics.ts @@ -448,6 +448,7 @@ type ActiveStatus = { pay: boolean; inAppWallet: boolean; ecosystemWallet: boolean; + engineCloud: boolean; }; export const isProjectActive = unstable_cache( @@ -479,6 +480,7 @@ export const isProjectActive = unstable_cache( pay: false, rpc: false, sdk: false, + engineCloud: false, storage: false, } as ActiveStatus; } @@ -488,7 +490,7 @@ export const isProjectActive = unstable_cache( }, ["isProjectActive"], { - revalidate: 60 * 60, // 1 hour + revalidate: 30, // 30 seconds }, ); diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx index be9e0dce2f0..1d99d28b69f 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx @@ -64,6 +64,9 @@ type PageProps = { searchParams: Promise; }; +// Revalidate this page data every 30 seconds +export const revalidate = 30; + export default async function ProjectOverviewPage(props: PageProps) { const [params, searchParams] = await Promise.all([ props.params,