🚧 Rspress 2.0 document is under development
close

useSite

useSite returns the normalized site configuration generated from your rspress.config.ts.

  • Type: () => { site: SiteData }

The site object mirrors the normalized config, including base path, language/locales, theme configuration, search and markdown options, and multi-version settings.

Pair with usePage to combine global config with the current page metadata.