Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: hard-code global stats

+6 -4
+6 -4
apps/web/src/components/marketing/stats.tsx
··· 6 6 const tb = new OSTinybird(env.TINY_BIRD_API_KEY); 7 7 8 8 export async function Stats() { 9 - const tbLastHourStats = await tb.homeStats({ period: "1h" }); 10 - const tbWeeklyStats = await tb.homeStats({ period: "1w" }); 9 + // const tbLastHourStats = await tb.homeStats({ period: "1h" }); 10 + // const tbWeeklyStats = await tb.homeStats({ period: "1w" }); 11 11 // const totalActiveMonitors = await api.monitor.getTotalActiveMonitors.query(); 12 12 13 13 return ( ··· 15 15 <div className="grid grid-cols-1 gap-8 sm:grid-cols-3 sm:gap-16"> 16 16 <div className="text-center"> 17 17 <h3 className="font-cal text-3xl"> 18 - {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} 18 + {/* {numberFormatter(tbWeeklyStats?.data?.[0]?.count || 0)} */} 19 + {numberFormatter(26_000_000)} 19 20 </h3> 20 21 <p className="font-light text-muted-foreground">Weekly pings</p> 21 22 </div> 22 23 <div className="text-center"> 23 24 <h3 className="font-cal text-3xl"> 24 - {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} 25 + {/* {numberFormatter(tbLastHourStats?.data?.[0]?.count || 0)} */} 26 + {numberFormatter(155_000)} 25 27 </h3> 26 28 <p className="font-light text-muted-foreground"> 27 29 Pings in the last hour