Getting Started
Learn how to get started with seo-in-nextjs.
Prerequisites
Section titled “Prerequisites”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
Installation
Section titled “Installation”-
Install it by running the following command in your terminal:
Terminal window npm install seo-in-nextjsTerminal window yarn add seo-in-nextjsTerminal window pnpm add seo-in-nextjs -
Create a
seo.config.ts(orseo.config.jsif 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",}); -
You’re all set! Start using the library in your Next.js project.
Related
Section titled “Related”View related API references.
defineSeoConfig API Reference for the defineSeoConfig function.