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
usePageto combine global config with the current page metadata.