Vite Plugin Reference

The Prestige Vite plugin is the build-time entry point for the library. It validates your config, reads content from src/content, builds sidebars and collection navigation, generates route files, and exposes virtual modules consumed by the UI.

import { prestige } from "@lonik/prestige/vite";

export default defineConfig({
  plugins: [
    prestige({
      disableLog: false,
      enableDebugLog: false,
    }),
  ],
});
import { defineConfig } from "@lonik/prestige/vite";

export default defineConfig({
  // prestige.config.ts
});

Add prestige() to vite.config.ts, then put the actual site config in prestige.config.ts.

Vite plugin options

disableLog

Type: boolean

Optional. Disables Prestige logger output. Default: false.

enableDebugLog

Type: boolean

Optional. Enables verbose debug logging. Default: false.

For the config file surface, see Prestige Config Reference.

Notes

  • Prestige plugin options belong in vite.config.ts.
  • Site structure and markdown options belong in prestige.config.ts.
  • disableLog and enableDebugLog are plugin options, not prestige.config.ts fields.