Skip to content

Commit d7104f6

Browse files
[Dashboard] Add engineCloud to ActiveStatus and reduce revalidation time to 30 seconds (#8216)
1 parent 23545cb commit d7104f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/dashboard/src/@/api/analytics.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ type ActiveStatus = {
448448
pay: boolean;
449449
inAppWallet: boolean;
450450
ecosystemWallet: boolean;
451+
engineCloud: boolean;
451452
};
452453

453454
export const isProjectActive = unstable_cache(
@@ -479,6 +480,7 @@ export const isProjectActive = unstable_cache(
479480
pay: false,
480481
rpc: false,
481482
sdk: false,
483+
engineCloud: false,
482484
storage: false,
483485
} as ActiveStatus;
484486
}
@@ -488,7 +490,7 @@ export const isProjectActive = unstable_cache(
488490
},
489491
["isProjectActive"],
490492
{
491-
revalidate: 60 * 60, // 1 hour
493+
revalidate: 30, // 30 seconds
492494
},
493495
);
494496

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ type PageProps = {
6464
searchParams: Promise<PageSearchParams>;
6565
};
6666

67+
// Revalidate this page data every 30 seconds
68+
export const revalidate = 30;
69+
6770
export default async function ProjectOverviewPage(props: PageProps) {
6871
const [params, searchParams] = await Promise.all([
6972
props.params,

0 commit comments

Comments
 (0)