Files
create-farcaster-mini-app/src/app/opengraph-image.tsx
lucas-neynar 853c63e024 cleanup
2025-03-26 11:42:50 -07:00

24 lines
521 B
TypeScript

import { ImageResponse } from "next/og";
export const alt = process.env.NEXT_PUBLIC_FRAME_NAME || "Frames V2 Demo";
export const size = {
width: 600,
height: 400,
};
export const contentType = "image/png";
// dynamically generated OG image for frame preview
export default async function Image() {
return new ImageResponse(
(
<div tw="h-full w-full flex flex-col justify-center items-center relative bg-white">
<h1 tw="text-6xl">{alt}</h1>
</div>
),
{
...size,
}
);
}