Cursor Prompt: Add SEO to Your Next.js App
When to Use This Prompt
Use this after your app is functional but before you start driving traffic. SEO foundations should be set early.
The Prompt
Add comprehensive SEO to this Next.js app: 1. Metadata: - Dynamic title and description for every page - Open Graph tags with og:image for social sharing - Twitter card meta tags - Canonical URLs on all pages 2. Technical SEO: - Generate sitemap.xml with all routes - Create robots.txt with proper rules - Add structured data (JSON-LD) for key pages - Implement breadcrumb navigation with schema 3. Performance SEO: - Optimize images with next/image and WebP - Add proper heading hierarchy (h1, h2, h3) - Implement lazy loading for below-fold content - Add aria-labels for accessibility 4. Content SEO: - Create a /llms.txt file for AI crawlers - Add FAQ sections with FAQPage schema - Internal linking between related pages
What to Customize
Adjust the structured data types for your content. Add specific page metadata rules for your content types.
Expected Output
Updated metadata across all pages, sitemap, robots.txt, structured data, and performance optimizations.