fc:frame metadata so shared links render an embed with a launch button.
Metadata enables rich embeds and discovery
Next.js (generateMetadata)
app/layout.tsx
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Define fc:frame metadata to render rich embeds with launch buttons
fc:frame metadata so shared links render an embed with a launch button.
Metadata enables rich embeds and discovery
<head> and ensure all referenced assets use HTTPS.export async function generateMetadata(): Promise<Metadata> {
const URL = process.env.NEXT_PUBLIC_URL as string;
return {
title: process.env.NEXT_PUBLIC_ONCHAINKIT_PROJECT_NAME,
description: 'Generated by `create-onchain --mini`',
other: {
'fc:frame': JSON.stringify({
version: 'next',
imageUrl: process.env.NEXT_PUBLIC_APP_HERO_IMAGE,
button: {
title: `Launch ${process.env.NEXT_PUBLIC_ONCHAINKIT_PROJECT_NAME}`,
action: {
type: 'launch_frame',
name: process.env.NEXT_PUBLIC_ONCHAINKIT_PROJECT_NAME,
url: URL,
splashImageUrl: process.env.NEXT_PUBLIC_SPLASH_IMAGE,
splashBackgroundColor: process.env.NEXT_PUBLIC_SPLASH_BACKGROUND_COLOR,
},
},
}),
},
};
}
Was this page helpful?