10on10labs logo
Comprehensive guide on SEO in NextJS
This guide walks you through the implementation of SEO effectively in a Next.js application using the App Router, a powerful feature introduced in Next.js 13 that simplifies routing and layout management.

OEOsama Ehsan Qureshi
Share this on:
last modified: September 5, 2025

Background:

"SEO is free traffic to your website", but the real cost is time and expertise. Creating an SEO-friendly blog in a Next.js application can be a game-changer for improving the visibility of your website on search engines. Thanks to Next.js’ built-in features, such as automatic static optimization, dynamic routing, dynamic sitemap creation, and the ability to integrate SEO metadata, you can easily create a high-performance, search engine-optimized blog.

In this guide, I will walk you through all the necessary steps and concepts you need to know to implement SEO best practices in NextJS latest version (15).

Step 1:

If you haven’t already set up a Next.js project, the first step is to create one. Use the following command to initialize a new Next.js app, make sure to use "app router" as I will be using app router in this tutorial (but in my tutorial, I will be giving the examples of our company portfolio, which is also in NextJS app router)

npx create-next-app@latest my-company-portfolio
cd my-company-portfolio

Also, I am not using the "src" directory, so my current project structure looks like this:

Sanity Image

Step 2:

Create a favicon.ico as per your company logo and place it inside the app directory.

About the Author

OE
Osama Ehsan Qureshi

Osama is a senior web developer with over 10 years of experience building modern web applications.

Specializing in React, Next.js, and TypeScript, Osama has helped numerous startups scale their frontend architecture.

When not coding, you can find Osama hiking or writing technical articles on Medium.

Related Blogs