Nuxt Hooks
Learn how to use Nuxt Hooks to customize your site config.
Nuxt SEO Pro
- Nuxt Redirects
- Nuxt Google Search Console
- Nuxt Internal Links
- Nuxt SEO Analyze
Save $170 on the presale now.
site-config:resolve
Type: async (ctx: SiteConfig) => void | Promise<void>
Modify the build time site config after it has been resolved.
export default defineNuxtConfig({
hooks: {
'site-config:resolve': (siteConfig) => {
if (process.env.FOO)
siteConfig.name = 'Bar'
},
},
})
Did this page help you?