Skip to content

useHostname

Convenient helper to get the configured hostname. Remember that useUheadless uses this behind the scenes, to automatically configure the correct hostname.

Usage

vue
<script setup lang="ts">
const hostname = await useHostname()
</script>