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.ts — buildPageMetadata():
- 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.ts — siteConfig, siteKeywords
Structured Data (JSON-LD)
lib/seo/schema.ts:
| Function | Schema Type | Use For |
|---|---|---|
buildOrganizationSchema() | Organization | Site-wide org info |
buildWebsiteSchema() | WebSite | Site search |
buildArticleSchema() | Article/BlogPosting | Blog, docs |
buildFaqSchema() | FAQPage | FAQ sections |
buildBreadcrumbList() | BreadcrumbList | Breadcrumbs |
buildHowToSchema() | HowTo | Step-by-step guides |
buildSoftwareApplicationSchema() | SoftwareApplication | App 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 clientapp/api/indexnow/route.ts— POST endpoint to trigger IndexNowINDEXNOW_KEYenv var — Key file for IndexNow- Script:
pnpm submit:sitemap— Submit sitemap to IndexNow
Next Steps
- Live comparison pages — pSEO examples on this marketing site
- Integration pages — Supabase, Stripe, and Resend guides
- Glossary — definition pages for long-tail SEO
- Audience pages — indie hackers and AI-assisted founders
- Google Search Console Setup — Add and verify your property, submit sitemaps
- Cloudflare Crawler Hints — Add site and enable Crawler Hints for faster indexing
- SEO Best Practices — Guidelines for crawlability, indexation, and structured data
- AI Search Discoverability — llms.txt, Markdown for agents, product facts, and AI crawler policy
- Site HTTP APIs — RFC 9727 API catalog, OpenAPI, ARD, MCP, Agent Skills, and WebMCP
- llms.txt — Machine-readable product facts for agents