SEO in Next.js 14 – The Ultimate Guide (Metadata, Sitemap, Robots, Google Search Console, Caching)

In this tutorial, you will learn everything you need to know about SEO (search engine optimization) in Next.js and the app router.

Project files:
Starting code:

⭐ Get my full-stack Next.js with Express & TypeScript course:
✅ Get my free React Best Practices course:
💌 Join my newsletter for regular web dev tips:
💬 Join our developer community on Discord:

📣 Follow Coding in Flow on social media:

0:00 – Intro & prerequisites
2:28 – Static metadata, title template, favicon, opengraph-image, next/Font, next/Image
18:24 – Dynamic metadata (generateMetadata), React cache
28:38 – Static rendering & caching, generateStaticParams, notFound
40:48 – Server components (SSR) vs client components (CSR)
43:35 – Dynamic sitemap (sitemap.ts)
50:42 – Robots.txt & robots meta tag
55:59 – Google Search Console & Vercel Analytics connection