mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-12-11 11:52:35 -05:00
25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
import { Metadata } from "next";
|
|
import App from "./app";
|
|
import { APP_NAME, APP_DESCRIPTION, APP_OG_IMAGE_URL } from "~/lib/constants";
|
|
import { getMiniAppEmbedMetadata } from "~/lib/utils";
|
|
|
|
export const revalidate = 300;
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
return {
|
|
title: APP_NAME,
|
|
openGraph: {
|
|
title: APP_NAME,
|
|
description: APP_DESCRIPTION,
|
|
images: [APP_OG_IMAGE_URL],
|
|
},
|
|
other: {
|
|
"fc:frame": JSON.stringify(getMiniAppEmbedMetadata()),
|
|
},
|
|
};
|
|
}
|
|
|
|
export default function Home() {
|
|
return (<App />);
|
|
}
|