mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
25 lines
578 B
TypeScript
25 lines
578 B
TypeScript
import { Metadata } from 'next';
|
|
import { APP_NAME, APP_DESCRIPTION, APP_OG_IMAGE_URL } from '~/lib/constants';
|
|
import { getMiniAppEmbedMetadata } from '~/lib/utils';
|
|
import App from './app';
|
|
|
|
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 />;
|
|
}
|