mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-12 04:12:34 -05:00
add opengraph image + embed
This commit is contained in:
22
src/app/opengraph-image.tsx
Normal file
22
src/app/opengraph-image.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { ImageResponse } from "next/og";
|
||||
|
||||
export const alt = "Farcaster Frames V2 Demo";
|
||||
export const size = {
|
||||
width: 800,
|
||||
height: 800,
|
||||
};
|
||||
|
||||
export const contentType = "image/png";
|
||||
|
||||
export default async function Image() {
|
||||
return new ImageResponse(
|
||||
(
|
||||
<div tw="h-full w-full flex flex-col justify-center items-center relative">
|
||||
<h1 tw="text-6xl">Frames v2 Demo</h1>
|
||||
</div>
|
||||
),
|
||||
{
|
||||
...size,
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user