mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
39 lines
809 B
TypeScript
39 lines
809 B
TypeScript
import { Metadata } from "next";
|
|
import App from "./app";
|
|
|
|
const appUrl = process.env.NEXT_PUBLIC_URL;
|
|
|
|
const frame = {
|
|
version: "next",
|
|
imageUrl: `${appUrl}/opengraph-image`,
|
|
button: {
|
|
title: "Launch Frame",
|
|
action: {
|
|
type: "launch_frame",
|
|
name: "Farcaster Frames v2 Demo",
|
|
url: appUrl,
|
|
splashImageUrl: `${appUrl}/splash.png`,
|
|
splashBackgroundColor: "#f7f7f7",
|
|
},
|
|
},
|
|
};
|
|
|
|
export const revalidate = 300;
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
return {
|
|
title: "Farcaster Frames v2 Demo",
|
|
openGraph: {
|
|
title: "Farcaster Frames v2 Demo",
|
|
description: "A Farcaster Frames v2 demo app.",
|
|
},
|
|
other: {
|
|
"fc:frame": JSON.stringify(frame),
|
|
},
|
|
};
|
|
}
|
|
|
|
export default function Home() {
|
|
return (<App />);
|
|
}
|