Documentation

Guides and references

SEO

SEO

Metadata, schema, sitemaps, robots.txt, and IndexNow in NextBento.

Overview

NextBento includes a comprehensive SEO toolkit:

  • Dynamic page metadata (title, description, keywords)
  • Open Graph and Twitter Card tags
  • JSON-LD structured data (Schema.org)
  • Auto-generated XML sitemaps
  • Robots.txt configuration
  • Canonical URLs
  • IndexNow integration

Metadata

lib/seo/metadata.tsbuildPageMetadata():

  • Generates <title>, <meta name="description">
  • Open Graph tags (og:title, og:description, og:image, og:url)
  • Twitter Card tags
  • Canonical URL
  • Keywords meta tag

Site config: lib/seo/site.tssiteConfig, siteKeywords

Structured Data (JSON-LD)

lib/seo/schema.ts:

FunctionSchema TypeUse For
buildOrganizationSchema()OrganizationSite-wide org info
buildWebsiteSchema()WebSiteSite search
buildArticleSchema()Article/BlogPostingBlog, docs
buildFaqSchema()FAQPageFAQ sections
buildBreadcrumbList()BreadcrumbListBreadcrumbs
buildHowToSchema()HowToStep-by-step guides
buildSoftwareApplicationSchema()SoftwareApplicationApp landing

Use components/seo/structured-data.tsx to inject JSON-LD on pages.

Sitemaps

  • Index: /sitemap.xml — references segmented sitemaps
  • Segments: /sitemaps/static, /sitemaps/blog, /sitemaps/docs, /sitemaps/pseo-*

Files: lib/seo/sitemap.ts, lib/seo/sitemap-xml.ts, app/sitemap.xml/route.ts, app/sitemaps/[segment]/route.ts

To add pages: update getStaticUrls() or the appropriate function in lib/seo/sitemap.ts.

Robots.txt

app/robots.txt/route.ts — Allow/Disallow, sitemap URL, Content Signals (ai-train, search, ai-input), and an Agentmap line pointing at the ARD catalog.

IndexNow

  • lib/indexnow/indexnow.ts — IndexNow API client
  • app/api/indexnow/route.ts — POST endpoint to trigger IndexNow
  • INDEXNOW_KEY env var — Key file for IndexNow
  • Script: pnpm submit:sitemap — Submit sitemap to IndexNow

Next Steps