Implement meta tags in Next.js using the App Router metadata API or Head component.
๐ Next.js Meta Tag Tips
- โUse the Metadata API in app/ directory (Next.js 13+)
- โExport metadata object or generateMetadata() function
- โUse next/head in pages/ directory for older projects
- โSet openGraph and twitter properties in metadata export
- โDynamic OG images with next/og ImageResponse
๐
Auto-generate OG images with GrabShot API
Stop creating OG images manually. Use GrabShot to auto-generate beautiful screenshots as your og:image โ with device frames, AI cleanup, and more.
Try GrabShot Free โ
Generate Your Next.js Meta Tags
Meta Tags for Other Platforms