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 sitemaps | Set up SEO |
| Keep a preview deployment out of search results | Indexing |
| See which paths crawlers are kept out of | robots.txt |
| Allow AI search but block AI training | AI crawlers |
List my pages and content in /sitemap.xml | Sitemap |
| Look up an option, default or startup error | SEO 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 noindex | Page metadata |
| Link the translations of a page | Canonical and hreflang |
| Control the picture in link previews | Social images |
| Design my own preview card | Social 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.
Related
- Content SEO: SEO fields of a content type.
- Localized URLs: how each language's URL is spelled.