Skip to Content
Documentation

SEO

SEO

How a VitNode site works with search engines, AI crawlers and link previews - indexing, robots.txt, sitemaps, page metadata, hreflang and social images.

VitNode handles SEO in two layers. A site-wide policy in vitnode.server.config.ts decides whether the deployment is indexable and serves /robots.txt and /sitemap.xml. Each page's head sets its own title, description, robots tag, canonical link and social image.

Site-wide policy

Set once per app with the seo block and the withSeo server entry.

I want to...Guide
Turn on generated robots.txt and sitemapsSet up SEO
Keep a preview deployment out of search resultsIndexing
See which paths crawlers are kept out ofrobots.txt
Allow AI search but block AI trainingAI crawlers
List my pages and content in /sitemap.xmlSitemap
Look up an option, default or startup errorSEO reference

Page by page

Set in each route's head. Works with or without the seo block.

I want to...Guide
Set a page's title, description or noindexPage metadata
Link the translations of a pageCanonical and hreflang
Control the picture in link previewsSocial images
Design my own preview cardSocial card templates

Content Engine records

Pages built from Content Engine records get their title, description, noindex, Open Graph tags, hreflang links and sitemap entries from the content type's delivery.seo and delivery.sitemap. Plugin authors set those fields once; see Content SEO.