Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: og bar limits (#585)
Maximilian Kaske4bc1e51860a2
diff --git a/apps/web/src/app/api/og/route.tsx b/apps/web/src/app/api/og/route.tsxindex 6341bd8d8..a1e2b559d 100644--- a/apps/web/src/app/api/og/route.tsx+++ b/apps/web/src/app/api/og/route.tsx@@ -17,8 +17,6 @@ const size = {height: 630,};-const LIMIT = 40;-const interRegular = fetch(new URL("../../../public/fonts/Inter-Regular.ttf", import.meta.url),).then((res) => res.arrayBuffer());@@ -53,7 +51,6 @@ export async function GET(req: Request) {(monitorId &&(await getMonitorListData({monitorId,- limit: LIMIT,timezone,}))) ||[];@@ -93,7 +90,7 @@ export async function GET(req: Request) {</div><div tw="flex flex-row relative">{/* Empty State */}- {new Array(LIMIT).fill(null).map((_, i) => {+ {new Array(data.length).fill(null).map((_, i) => {return (<divkey={i}@@ -127,7 +124,7 @@ export async function GET(req: Request) {</div></div><div tw="flex flex-row items-center justify-between -mt-3 text-slate-500 text-sm">- <p tw="">{LIMIT} days ago</p>+ <p tw="">{data.length} days ago</p><p tw="mr-1">today</p></div></div>diff --git a/apps/web/src/app/play/layout.tsx b/apps/web/src/app/play/layout.tsxindex 889896477..d845a1c4a 100644--- a/apps/web/src/app/play/layout.tsx+++ b/apps/web/src/app/play/layout.tsx@@ -12,11 +12,9 @@ export const metadata: Metadata = {...defaultMetadata,twitter: {...twitterMetadata,- images: [`/api/og?monitorId=1`],},openGraph: {...ogMetadata,- images: [`/api/og?monitorId=1`],},};