Add banner-led event social previews and refresh Open Graph branding

This commit is contained in:
2026-09-10 10:18:28 -04:00
parent 74592718c1
commit 9f638d3c2a
6 changed files with 76 additions and 58 deletions
@@ -0,0 +1,13 @@
import { createServerCaller } from "@/trpc/server";
import { renderSocialImage } from "@/server/social-image";
export const runtime = "nodejs";
export const dynamic = "force-dynamic";
export const alt = "Shared event album on Manyangles";
export const size = { width: 1200, height: 630 };
export const contentType = "image/png";
export default async function EventImage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const caller = await createServerCaller();
const event = await caller.event.bySlug(slug).catch(() => null);
return renderSocialImage(event ?? undefined);
}