Mohamed GhoniemWeb Developer
MohamedGhoniem
  • Work
  • Services
  • Experience
  • Blog
Available
CV
Open to opportunities
WorkServicesExperienceBlogDownload CV
All blogs

© 2026 Mohamed Ghoniem. All rights reserved.

TwitterGitHubLinkedIn
The complete Next.js SEO checklist for 2025
DesignFrontend
All blogs

The complete Next.js SEO checklist for 2025

MG
Mohamed Ghoniem
·July 16, 2026·10 min read

Prefer to watch?

This article has a full video walkthrough on YouTube

Watch the same walkthrough on YouTube.

The components of modern SEO

SEO in 2025 goes beyond meta tags. Search engines like Google prioritize page loading performance (Core Web Vitals), mobile responsiveness, structured JSON-LD data, and semantic HTML tag hierarchy.

Configuring Metadata API

Next.js features a built-in Metadata API that automatically inserts headers for titles, descriptions, open graph cards, and canonical links. Put this export in your static or dynamic pages:

javascript
// Standard Metadata Export
export const metadata = {
  title: 'Blog Post Title | Portfolio',
  description: 'Learn about Next.js SEO best practices.',
  openGraph: {
    title: 'Blog Post Title',
    description: 'Learn about Next.js SEO best practices.',
    url: 'https://mysite.com/blog/seo',
    images: [{ url: '/og-image.jpg' }]
  }
};

Generating sitemaps and robots.txt

Instead of managing sitemaps manually, add a sitemap.js or sitemap.ts file in the app directory to dynamically fetch slugs from your database and output a valid XML sitemap at build time.

On this page10 min left
The components of modern SEOConfiguring Metadata APIGenerating sitemaps and robots.txt

Share

On this page10 min left
The components of modern SEOConfiguring Metadata APIGenerating sitemaps and robots.txt

Written by

Mohamed Ghoniem

I build fast, responsive web experiences, from pixel-perfect UI to the backend behind it.

Get in touchAll posts
Older postCSS architecture at scale: BEM vs. utility-first vs. CSS ModulesNewer postAdvanced TypeScript patterns every React dev should know
Keep reading
Building a design system from scratch with Figma tokens & Tailwind
DesignFrontendJuly 16, 2026

Building a design system from scratch with Figma tokens & Tailwind

A practical walkthrough of how I set up a token-driven design system that stays in sync between Figma and code — no plugin lock-in, no manual updates.

MG
Mohamed G.
8 min read
The hidden cost of unoptimized images in Next.js
DesignFrontendJuly 16, 2026

The hidden cost of unoptimized images in Next.js

A practical walkthrough of how I set up a token-driven design system that stays in sync between Figma and code — no plugin lock-in, no manual updates.

MG
Mohamed G.
5 min read
JWT refresh token rotation — the right way
DesignFrontendJuly 16, 2026

JWT refresh token rotation — the right way

A practical walkthrough of how I set up a token-driven design system that stays in sync between Figma and code — no plugin lock-in, no manual updates.

MG
Mohamed G.
6 min read