Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
fix: description post og image
Maximilian Kaske26061d567ca3
diff --git a/apps/web/src/app/(content)/blog/[slug]/page.tsx b/apps/web/src/app/(content)/blog/[slug]/page.tsxindex f6f21d6f1..42a624adc 100644--- a/apps/web/src/app/(content)/blog/[slug]/page.tsx+++ b/apps/web/src/app/(content)/blog/[slug]/page.tsx@@ -43,7 +43,7 @@ export async function generateMetadata({url: `https://www.openstatus.dev/blog/${slug}`,images: [{- url: `https://openstatus.dev/api/og/post?title=${title}&description=&image=${image}`,+ url: `https://openstatus.dev/api/og/post?title=${title}&image=${image}`,},],},@@ -52,7 +52,7 @@ export async function generateMetadata({title,description,images: [- `https://openstatus.dev/api/og/post?title=${title}&description=${description}&image=${image}`,+ `https://openstatus.dev/api/og/post?title=${title}&image=${image}`,],},};diff --git a/apps/web/src/app/api/og/_components/basic-layout.tsx b/apps/web/src/app/api/og/_components/basic-layout.tsxindex 788d7d6ac..b299c8a71 100644--- a/apps/web/src/app/api/og/_components/basic-layout.tsx+++ b/apps/web/src/app/api/og/_components/basic-layout.tsx@@ -8,7 +8,7 @@ export function BasicLayout({tw,}: {title: string;- description?: string;+ description?: string | null;children?: React.ReactNode;tw?: string;}) {@@ -20,13 +20,15 @@ export function BasicLayout({<h1 style={{ fontFamily: "Cal" }} tw="text-6xl">{title}</h1>- <p tw="text-slate-600 text-3xl">{description}</p>+ {description ? (+ <p tw="text-slate-600 text-3xl">{description}</p>+ ) : null}</div></div><divtw={cn("flex flex-col justify-center shadow-2xl mt-1 bg-white rounded-t-lg border-t-2 border-r-2 border-l-2 border-slate-200 px-12",- tw,+ tw)}>{children}diff --git a/apps/web/src/app/api/og/post/route.tsx b/apps/web/src/app/api/og/post/route.tsxindex 846ebb145..41f65569c 100644--- a/apps/web/src/app/api/og/post/route.tsx+++ b/apps/web/src/app/api/og/post/route.tsx@@ -15,31 +15,33 @@ export const runtime = "edge";export async function GET(req: Request) {const [interRegularData, interLightData, calSemiBoldData] = await Promise.all(- [interRegular, interLight, calSemiBold],+ [interRegular, interLight, calSemiBold]);const { searchParams } = new URL(req.url);const title =(searchParams.has("title") && searchParams.get("title")) || TITLE;- const description =- (searchParams.has("description") && searchParams.get("description")) ||- DESCRIPTION;+ const description = searchParams.has("description")+ ? searchParams.get("description")+ : undefined;const image = searchParams.has("image")? searchParams.get("image"): undefined;return new ImageResponse(- <BasicLayout title={title} description={description}>- {image ? (- <img- alt=""- style={{ objectFit: "cover", height: 350 }} // h-80 = 320px- tw="flex w-full"- src={new URL(image, DEFAULT_URL).toString()}- />- ) : null}- </BasicLayout>,+ (+ <BasicLayout title={title} description={description}>+ {image ? (+ <img+ alt=""+ style={{ objectFit: "cover", height: 350 }} // h-80 = 320px+ tw="flex w-full"+ src={new URL(image, DEFAULT_URL).toString()}+ />+ ) : null}+ </BasicLayout>+ ),{...SIZE,fonts: [@@ -62,6 +64,6 @@ export async function GET(req: Request) {weight: 600,},],- },+ });}diff --git a/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdx b/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdxindex 6ebf0881e..b16d151ce 100644--- a/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdx+++ b/apps/web/src/content/posts/reflecting-1-year-building-openstatus.mdx@@ -205,4 +205,7 @@ Stay tuned for more updates as we continue to improve OpenStatus!height={575}/>-To infinity and beyond π\ No newline at end of file+To infinity and beyond π++Want to join us on this journey? [Star us on GitHub](https://www.github.com/openstatusHQ/openstatus)! π+Or create an account on [Openstatus](https://www.openstatus.dev/app/login) and start monitoring your services today!\ No newline at end of file