Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Change the stale time for `get-deployment-commit` from 10 seconds to 10 minutes (#37845)

Ivan Vasilov76e8df5546f4
diff --git a/apps/studio/hooks/use-check-latest-deploy.tsx b/apps/studio/hooks/use-check-latest-deploy.tsx
index cad2e77b005..eb09ccaeda3 100644
--- a/apps/studio/hooks/use-check-latest-deploy.tsx
+++ b/apps/studio/hooks/use-check-latest-deploy.tsx
@@ -42,7 +42,7 @@ export function useCheckLatestDeploy() {
const { data: commit } = useDeploymentCommitQuery({
enabled: IS_PLATFORM && showRefreshToast,
- staleTime: 10000, // 10 seconds
+ staleTime: 1000 * 60 * 10, // 10 minutes
})
useEffect(() => {