# Catch Next.js SEO bugs in the pull request.

> SEO review for Next.js pull requests. SEOCode reads the App Router metadata export and catches noindex, invalid JSON-LD and client-only tags.

Source: https://seocode.io/nextjs-seo

For Next.js teams

SEOCode reviews every PR against a Next.js-aware ruleset. It reads your `metadata` export and flags real regressions: an accidental `noindex`, invalid JSON-LD, metadata set only on the client.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [View sample report](https://seocode.io/sample-report)

Free on the Developer plan, full ruleset on every pull request. Works with the App Router and the Pages Router.

SEO reviews by framework: **Next.js** · [Astro](https://seocode.io/astro-seo) · [SvelteKit](https://seocode.io/sveltekit-seo) · [Remix](https://seocode.io/remix-seo) · [Nuxt](https://seocode.io/nuxt-seo)

```
# or run it locally / in CI, no GitHub App required
npx @qobi/seocode check --staged
```

## Next.js makes SEO invisible until it's live.

Your metadata lives in layouts, async functions and client components, and nothing fails the build when it breaks.

### Images without alt text

Product and hero images shipped without `alt` text can't appear in image search, and screen readers skip them.

### Metadata set in a Client Component

Tags injected from a `"use client"` component or a `useEffect` only appear after hydration. Crawlers and AI search engines read the server HTML, where they're missing entirely.

### An accidental `noindex` from staging

A `robots: { index: false }` in a shared layout or an env-gated flag slips through review and de-indexes the section it wraps. It's the most damaging regression and the easiest to miss in a diff.

### Broken JSON-LD in `dangerouslySetInnerHTML`

Structured data built by hand or with unescaped values produces invalid JSON. Search engines drop it without warning, and your rich results go with it.

### AI crawlers blocked in `robots.txt`

A copied `robots.txt` or a `robots.ts` rule that disallows GPTBot, ClaudeBot or PerplexityBot stops those crawlers reading your site.

## It reads your source the way Next.js does.

SEOCode parses your TSX and JSX source, so it checks what each file sets and stays quiet about what a layout may add.

### The metadata export

Reads the `robots` setting in your `metadata` export and flags an accidental `noindex` before it de-indexes the route.

### Titles and descriptions in the route chain

Walks from a page up through its layouts. If neither the page nor any layout sets a title or description, it flags the route.

### No false alarms from layouts

A page that leaves its title to a layout or `generateMetadata` is not flagged. A static one written in the page is checked for length.

### Server vs client rendering

Flags metadata and JSON-LD that only exist after hydration, which crawlers never see, and tells you to move them to the server.

### Structured data validity

Validates JSON-LD written in the file, and checks entity schema for `@id` and `sameAs`, the signals that power rich results and AI citations.

### The rest of the SEO and GEO ruleset

Heading structure, image alt text and lazy-loading, links, blocked AI crawlers in `robots.txt`, and more: the same checks on every PR.

**Quiet unless something is wrong**

SEOCode only comments when it finds something worth fixing. Dynamic metadata, layout-owned tags and runtime JSON-LD don't trigger findings, so every comment is worth reading.

## Install once, then it's automatic.

There's no config to write and no CI step to maintain.

### Install in one click

Add SEOCode to your Next.js repo or whole org. It detects the framework, so there's nothing to configure. For your own pipeline, use the `@qobi/seocode` CLI.

### Open a pull request

SEOCode reviews the changed files, resolves your metadata, and runs the full ruleset, usually within seconds of the PR opening.

### Get fixes in the comment

Issues are grouped by severity, each with the exact fix, critical ones first. You can make the check required before a merge.

## Questions, answered.

**Does it support both the App Router and the Pages Router?**

**What about parallel routes and intercepting routes?**

**Will it false-positive on dynamic generateMetadata?**

**Can I run it in CI without the GitHub App?**

**Does it work in a monorepo?**

**Is it free?**

## Stop shipping Next.js SEO regressions.

Add SEOCode to your repo and it reviews your next pull request. To check a live website, get a website audit.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit)
