---
title: "Nuxt Hooks"
description: "Learn how to use Nuxt Hooks to customize your site config."
canonical_url: "https://nuxtseo.com/docs/site-config/api/nuxt-hooks"
last_updated: "2026-05-25T04:22:22.748Z"
---

## `site-config:resolve`

**Type:** `() => void`

Modify the build time site config after the module resolves it.

It's recommended to use runtime [Nitro hooks](/docs/site-config/nitro-api/nitro-hooks) if you need to modify the site config at runtime.

```ts
import { updateSiteConfig } from 'nuxt-site-config/kit'

export default defineNuxtConfig({
  hooks: {
    'site-config:resolve': () => {
      if (process.env.FOO) {
        updateSiteConfig({
          name: 'Bar'
        })
      }
    },
  },
})
```
