Vite Plugin
The Prestige Vite plugin is the build-time engine behind the library. It reads content pages, compiles them into HTML, generates sidebars from collections, creates route files, and exposes the data used by the UI.
Add it to the plugins array in vite.config.ts. It should appear before the TanStack Start plugin:
prestige(),
tanstack(),
Two config fields are especially important:
title: string
The title field is the site title. Prestige uses it as the default browser-title suffix and as the default header title.
collections: array
The collections array defines your documentation areas, sidebar structure, and generated content routes.
Generating routes
During development, the plugin watches src/content and regenerates file routes when relevant content changes.
Config
For the full config surface, see the Vite Plugin Reference.
