Repository navigation
SEO Preview Panel
Louis Wright edited this page Oct 14, 2026
·
1 revision
Status: planned / pre-release. This wiki page mirrors
docs/and documents the intended API of next-herald. Nothing is published yet; names may change before v1.0. See ROADMAP.
<HeraldPreview /> is a development overlay that shows how the current page will look as a Google result, an Open Graph / X card and a chat link preview, with live herald check warnings (#57). It renders nothing in production builds.
// app/layout.tsx (excerpt)
import { HeraldPreview } from 'next-herald/preview';
export default function RootLayout({ children }: LayoutProps<'/'>) {
return (
<html lang="en">
<body>
{children}
<HeraldPreview />
</body>
</html>
);
}| Prop | Type | Default | Notes |
|---|---|---|---|
position |
'bottom-right' | 'bottom-left' |
'bottom-right' |
Toggle button position. |
defaultOpen |
boolean |
false |
Open the panel on load. |
rules |
CheckConfig['rules'] |
from check.rules
|
Severity overrides for live warnings. |
- Google result: title, URL breadcrumb and description, truncated at documented widths. An approximation: Google rewrites titles and snippets.
-
Social cards: Open Graph (
summary_large_imageandsummary) and X, from the renderedog:*/twitter:*tags and images. - Chat link preview: generic title, description, image and site name card as shown by chat apps.
-
Live warnings: the page-level rules from
checkHtml(Testing) run against the current DOM and update on client navigation. Site-level rules (duplicates, sitemaps, redirects) needherald check(CLI).
- Client Component; returns
nullunlessprocess.env.NODE_ENV === 'development', so the bundler removes it from production builds. Client JS added in production: 0 (asserted in e2e). - Reads the rendered DOM in the browser only. It never calls
headers(),cookies()or any request API (ADR 0006), so the layout stays in the static shell. - No dependencies beyond
nextandreact(ADR 0002).
Guides
- Getting Started
- Configuration
- Metadata
- JSON LD
- Sitemaps
- Robots
- hreflang and i18n
- OG Images
- CLI and Check Rules
- Cache Components and PPR
- Static Export
- Testing
- AEO Stance
- SEO Preview Panel
- Redirects
- Pagination and Facets
- Image SEO
- Check Diff Mode
- Migration from next seo
- Migration from next sitemap
Reference