Nuxt/docs/3.api/2.composables/use-server-seo-meta.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

1.1 KiB

title description links
useServerSeoMeta The useServerSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.
label icon to size
Source i-simple-icons-github https://github.com/unjs/unhead/blob/main/packages/unhead/src/composables/useServerSeoMeta.ts xs

Just like useSeoMeta, useServerSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.

:read-more{to="/docs/api/composables/use-seo-meta"}

In most instances, the meta doesn't need to be reactive as robots will only scan the initial load. So we recommend using useServerSeoMeta as a performance-focused utility that will not do anything (or return a head object) on the client.

<script setup lang="ts">
useServerSeoMeta({
  robots: 'index, follow'
})
</script>

Parameters are exactly the same as with useSeoMeta

:read-more{to="/docs/getting-started/seo-meta"}