useServerSeoMeta
The useServerSeoMeta composable lets you define your site's SEO meta tags as a flat object with full TypeScript support.
useServerSeoMeta is deprecated. Wrap useSeoMeta in an if (import.meta.server) block instead. The auto-import is removed under future.compatibilityVersion: 5.useServerSeoMeta lets you define your site's SEO meta tags as a flat object with full TypeScript support, exactly like useSeoMeta, but it only runs server-side and is tree-shaken from the client bundle.
For new code, use the server-only pattern directly:
app/app.vue
<script setup lang="ts">
if (import.meta.server) {
useSeoMeta({
robots: 'index, follow',
})
}
</script>
Parameters are exactly the same as with useSeoMeta.