---
title: "Nuxt Hooks"
description: "Learn how to use Nuxt hooks to modify your Schema.org output."
canonical_url: "https://nuxtseo.com/docs/schema-org/api/nuxt-hooks"
last_updated: "2026-05-06T21:33:44.049Z"
---

## `'schema-org:meta'`

**Type:** `(meta: MetaInput) => void | Promise<void>`

You can hook into the generation of the meta-data used to generate the Schema.org data.

For example, this can be useful
for dynamically changing the host.

```ts [my-nuxt-plugin.ts]
import { defineNuxtPlugin } from '#app'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.hooks.hook('schema-org:meta', (meta) => {
    if (nuxtApp._route.path === '/plugin-override') {
      meta.host = 'https://override-example.com'
      meta.url = `${meta.host}${meta.path}`
    }
  })
})
```
