Components
Composables
useConfig
Read the public part of the Runable configuration in the Vue application.
function useConfig(): ClientConfigThe result contains only options that are safe to send to the client:
const config = useConfig();
console.log(config.ssr);
console.log(config.siteUrl);
console.log(config.baseUrl);
console.log(config.head);ClientConfig includes head, ssr, siteUrl, and baseUrl. Absolute paths, modules, and Vite settings remain on the server.