Skip to content

useSeo

Apply reasonable SEO defaults to the application using this composable. The modules requires to setup the SEO fields in Umbraco according to the latest uSync export found here @heavyy/wah-usync/tree/main/wah-seo.

The composable returns an object containing two computed properties:

  • head
  • injectedH1

Requires the middleware option to be enabled.

useSeo is automatically applied by uHeadless. This means that this composable should only be applied if you have disabled the useSeo option.

Usage

vue
<script setup lang="ts">
const { head, injectedH1 } = useSeo()
useHead(head)
</script>