useSite
useSite returns the serialized site configuration from rspress.config.ts.
- Type:
() => { site: SiteData }
Here is an example of getting the title configuration from rspress.config.ts:
Can be used together with usePage to get both global site configuration and current page metadata.