> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-eb-mini-app-ia-overhaul.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Frame Metadata

> Define fc:frame metadata to render rich embeds with launch buttons

Add `fc:frame` metadata so shared links render an embed with a launch button.

<Warning>
  Place the meta tag in `<head>` and ensure all referenced assets use HTTPS.
</Warning>

### Next.js (generateMetadata)

```ts app/layout.tsx
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,
          },
        },
      }),
    },
  };
}
```

<CardGroup cols={2}>
  <Card title="Test & deploy" icon="rocket" href="/mini-apps/quickstart/turn-your-app-into-a-mini-app/test-and-deploy">
    Validate configuration and ship
  </Card>

  <Card title="Embeds & Previews" icon="image" href="/mini-apps/features/embeds-and-previews">
    Minimal metadata and validation steps
  </Card>
</CardGroup>
