mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-11 20:02:37 -05:00
24 lines
521 B
TypeScript
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,
|
|
}
|
|
);
|
|
}
|