Skip to content

Getting Started

Learn how to get started with seo-in-nextjs.

You will need to have a Next.js website set up. If you don’t have one yet, you can follow the “Installation” guide in the Next.js docs to create one.

Additionally, your Next.js website must meet the following requirements:

  • App Router
  • Next.js 13.3.0 or higher
  • React 18.2.0 or higher
  1. Install it by running the following command in your terminal:

    Terminal window
    npm install seo-in-nextjs
  2. Create a seo.config.ts (or seo.config.js if not using TypeScript) file in the root of your project with the following content and replace it with your corresponding data:

    import { defineSeoConfig } from "seo-in-nextjs";
    export default defineSeoConfig({
    baseUrl: "https://example.com",
    siteName: "Example",
    });
  3. You’re all set! Start using the library in your Next.js project.

View related API references.