# Getting Started

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

## Prerequisites

You will need to have a Next.js website set up. If you don't have one yet, you can follow the ["Installation"](https://nextjs.org/docs/app/getting-started/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

1. Install it by running the following command in your terminal:

   <Tabs syncKey="pkg">

   <TabItem label="npm">

   ```sh
   npm install seo-in-nextjs
   ```

   </TabItem>

   <TabItem label="yarn">

   ```sh
   yarn add seo-in-nextjs
   ```

   </TabItem>

   <TabItem label="pnpm">

   ```sh
   pnpm add seo-in-nextjs
   ```

   </TabItem>

   </Tabs>

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:

   ```ts
   export default defineSeoConfig({
     baseUrl: "https://example.com",
     siteName: "Example",
   });
   ```

3. You're all set! Start using the library in your Next.js project.

## Related

View related API references.

[defineSeoConfig](https://seo-in-nextjs.dlcastillop.com/docs/reference/define-seo-config)