Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: dlcastillop
25 changes: 7 additions & 18 deletions docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default defineConfig({
},
{
icon: "github",
href: "https://github.com/dlcastillop",
label: "Github account",
href: "https://github.com/dlcastillop/seo-in-nextjs",
label: "Github repo",
},
{
icon: "linkedin",
Expand Down Expand Up @@ -163,14 +163,7 @@ export default defineConfig({
baseUrl: BASE_URL,
}),
starlightUiTweaks({
navbarLinks: [
{
label: "Pricing",
href: "/#pricing",
},
],
footer: {
showSocialIcons: true,
copyright: "Daniel Castillo. All rights reserved.",
firstColumn: {
title: "Developer Tools",
Expand Down Expand Up @@ -209,7 +202,7 @@ export default defineConfig({
href: "/docs/tooling/seo-check/",
},
{
label: "IA",
label: "AI",
href: "docs/ai/agent-skills",
},
{
Expand All @@ -222,12 +215,12 @@ export default defineConfig({
title: "Support",
links: [
{
label: "Request a feature",
href: "https://github.com/dlcastillop/shop-support/issues/new?template=feature_request.md",
label: "Issues",
href: "https://github.com/dlcastillop/seo-in-nextjs/issues",
},
{
label: "Report a bug",
href: "https://github.com/dlcastillop/shop-support/issues/new?template=bug_report.md",
label: "Discussions",
href: "https://github.com/dlcastillop/seo-in-nextjs/discussions",
},
],
},
Expand All @@ -242,10 +235,6 @@ export default defineConfig({
label: "Changelog",
href: "/docs/changelog",
},
{
label: "License",
href: "/license",
},
],
},
},
Expand Down
Binary file added docs/public/check-seo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/public/check-seo.png
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/src/content/docs/docs/ai/agent-skills.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Agent Skills
description: Learn how to add the seo-in-nextjs Agent Skills to your AI agent.
lastUpdated: 2026-02-20
lastUpdated: 2026-03-25
---

`seo-in-nextjs` comes with a list of Agent Skills that define best practices for working with this library.
Expand All @@ -11,5 +11,5 @@ These skills are useful for AI agents like Claude Code, Codex, or Cursor.
## Installation

```sh
npx skills add https://github.com/dlcastillop/agent-skills --skill seo-in-nextjs
npx skills add https://github.com/dlcastillop/seo-in-nextjs --skill seo-in-nextjs
```
13 changes: 12 additions & 1 deletion docs/src/content/docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
---
title: Changelog
description: New features, bug fixes, and improvements made to seo-in-nextjs.
lastUpdated: 2025-01-09
lastUpdated: 2025-03-25
---

New features, bug fixes, and improvements made to `seo-in-nextjs`.

## v1.1.0

### Features

- Add `ignoreRoutes` option to `seoConfig` to exclude routes from `sitemap.xml` and `llms.txt` generation

### Improvements

- The config file now supports full JavaScript expressions. Previously, this would break the configuration
- `defaultOgImg` and `manualRoutes` in `seoConfig` are now optional

## v1.0.0

### Features
Expand Down
46 changes: 8 additions & 38 deletions docs/src/content/docs/docs/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
title: Getting Started
description: Learn how to get started with seo-in-nextjs.
lastUpdated: 2026-02-20
lastUpdated: 2026-03-25
---

import {
Steps,
Tabs,
TabItem,
Aside,
LinkCard,
} from "@astrojs/starlight/components";

Expand All @@ -24,84 +23,55 @@ Additionally, your Next.js website must meet the following requirements:
- **Next.js 13.3.0 or higher**
- **React 18.2.0 or higher**

<Aside>
This library requires a paid license. [Learn more about pricing](/#pricing).
</Aside>

## Installation

<Steps>

1. Download the library `.tgz` file from [Ko-fi](https://ko-fi.com/s/5f7e204635) if you purchased SEO in Next.js, or from [this link](https://ko-fi.com/s/816f3ed7c5) if you purchased SEO Bundle.

<Aside>
If you purchased SEO in Next.js or the SEO Bundle through other platforms,
you can download it there instead of on Ko-fi.
</Aside>

2. Place the `.tgz` file in the root of your project and add it to your `package.json`:

```diff lang="json"
// package.json
{
"dependencies": {
+ "@dlcastillop/seo-in-nextjs": "file:./seo-in-nextjs-1.0.0.tgz"
}
}
```

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

<Tabs syncKey="pkg">

<TabItem label="npm">

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

</TabItem>

<TabItem label="yarn">

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

</TabItem>

<TabItem label="pnpm">

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

</TabItem>

</Tabs>

3. 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:
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
import { defineSeoConfig } from "@dlcastillop/seo-in-nextjs";
import { defineSeoConfig } from "seo-in-nextjs";

export default defineSeoConfig({
baseUrl: "https://example.com",
siteName: "Example",
defaultOgImg: "/default-og.png",
manualRoutes: [],
});
```

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

</Steps>

<Aside type="note">
Remember to track the library's `.tgz` file in your version control system to
ensure it's available for deployment.
</Aside>

## Related

View related API references.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Steps, Aside, LinkCard } from "@astrojs/starlight/components";

```tsx
// app/article/getting-started/page.tsx
import { JsonLdForArticle } from "@dlcastillop/seo-in-nextjs";
import { JsonLdForArticle } from "seo-in-nextjs";

export default function ArticlePage() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Steps, Aside, LinkCard } from "@astrojs/starlight/components";

```tsx
// app/products/electronics/laptops/page.tsx
import { JsonLdForBreadcrumb } from "@dlcastillop/seo-in-nextjs";
import { JsonLdForBreadcrumb } from "seo-in-nextjs";

export default function LaptopsPage() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Steps, Aside, LinkCard } from "@astrojs/starlight/components";

```tsx
// app/faq/page.tsx
import { JsonLdForFaq } from "@dlcastillop/seo-in-nextjs";
import { JsonLdForFaq } from "seo-in-nextjs";

export default function FaqPage() {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Steps, Aside, LinkCard } from "@astrojs/starlight/components";

```tsx
// app/article/getting-started/page.tsx
import { JsonLdScript } from "@dlcastillop/seo-in-nextjs";
import { JsonLdScript } from "seo-in-nextjs";

export default function ArticlePage() {
const jsonLd = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Steps, Aside, LinkCard } from "@astrojs/starlight/components";

```tsx
// app/task-manager/page.tsx
import { JsonLdForSoftwareApp } from "@dlcastillop/seo-in-nextjs";
import { JsonLdForSoftwareApp } from "seo-in-nextjs";

export default function TaskManagerPage() {
return (
Expand Down
6 changes: 3 additions & 3 deletions docs/src/content/docs/docs/guides/generate-llms-txt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ There are two ways to generate the `llms.txt` file.
// package.json
{
"scripts": {
"build": "node --input-type=module -e \"import('@dlcastillop/seo-in-nextjs/scripts').then(m => m.generateLlmsTxt())\" && next build"
"build": "node --input-type=module -e \"import('seo-in-nextjs/scripts').then(m => m.generateLlmsTxt())\" && next build"
}
}
```
Expand All @@ -47,7 +47,7 @@ There are two ways to generate the `llms.txt` file.
// package.json
{
"scripts": {
"generate-llmstxt": "node --input-type=module -e \"import('@dlcastillop/seo-in-nextjs/scripts').then(m => m.generateLlmsTxt())\""
"generate-llmstxt": "node --input-type=module -e \"import('seo-in-nextjs/scripts').then(m => m.generateLlmsTxt())\""
}
}
```
Expand Down Expand Up @@ -98,7 +98,7 @@ Automatic route detection works by analyzing your project's file system. However
To include these routes in your `llms.txt` file, you need to manually specify them in the `manualRoutes` property of the `seo.config.ts` or `seo.config.js` file.

```ts
import { defineSeoConfig } from "@dlcastillop/seo-in-nextjs";
import { defineSeoConfig } from "seo-in-nextjs";

export default defineSeoConfig({
baseUrl: "https://example.com",
Expand Down
14 changes: 7 additions & 7 deletions docs/src/content/docs/docs/guides/generate-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {

```ts
// app/page.tsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";

export const metadata = genPageMetadata({
title: "Example - Your trusted source for quality examples",
Expand Down Expand Up @@ -58,7 +58,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```ts
// app/blog/[slug]/page.tsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";
import type { Metadata } from "next";

export async function generateMetadata(): Promise<Metadata> {
Expand All @@ -72,7 +72,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```js
// app/blog/[slug]/page.jsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";

export async function generateMetadata() {
return genPageMetadata;
Expand All @@ -91,7 +91,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```diff lang="ts"
// app/blog/[slug]/page.tsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";
import type { Metadata } from "next";

+interface PageProps {
Expand Down Expand Up @@ -121,7 +121,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```diff lang="js"
// app/blog/[slug]/page.jsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";

+async function getArticle(slug) {
+ const res = await fetch(`https://api.example.com/articles/${slug}`);
Expand All @@ -148,7 +148,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```diff lang="ts"
// app/blog/[slug]/page.tsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";
import type { Metadata } from "next";

interface PageProps {
Expand Down Expand Up @@ -183,7 +183,7 @@ When working with async pages, you can wrap `genPageMetadata` inside an async fu

```diff lang="js"
// app/blog/[slug]/page.jsx
import { genPageMetadata } from "@dlcastillop/seo-in-nextjs";
import { genPageMetadata } from "seo-in-nextjs";

async function getArticle() {
const res = await fetch(`https://api.example.com/articles/${slug}`);
Expand Down
8 changes: 4 additions & 4 deletions docs/src/content/docs/docs/guides/generate-robots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
```ts
// app/robots.ts
import type { MetadataRoute } from "next";
import { robotsTxt } from "@dlcastillop/seo-in-nextjs";
import { robotsTxt } from "seo-in-nextjs";

export default function robots(): MetadataRoute.Robots {
return robotsTxt();
Expand All @@ -42,7 +42,7 @@ import {

```js
// app/robots.js
import { robotsTxt } from "@dlcastillop/seo-in-nextjs";
import { robotsTxt } from "seo-in-nextjs";

export default function robots() {
return robotsTxt();
Expand Down Expand Up @@ -72,7 +72,7 @@ The configuration allows you to specify custom rules, user agents, and crawl del
```ts
// app/robots.ts
import type { MetadataRoute } from "next";
import { robotsTxt } from "@dlcastillop/seo-in-nextjs";
import { robotsTxt } from "seo-in-nextjs";

export default function robots(): MetadataRoute.Robots {
return robotsTxt({
Expand All @@ -98,7 +98,7 @@ export default function robots(): MetadataRoute.Robots {

```js
// app/robots.js
import { robotsTxt } from "@dlcastillop/seo-in-nextjs";
import { robotsTxt } from "seo-in-nextjs";

export default function robots() {
return robotsTxt({
Expand Down
Loading
Loading