nuxt-seo
nuxt-seo copied to clipboard
How to merge default options with head function options in nuxt.config.js file
I'm trying to use nuxt-seo module but it's not working for some reason
nuxt.config.js
{
head(){
return {
script: [...someGlobalScripts]
}
},
seo:{
title: 'my website title'
}
}
When i commented the head function it worked fine, so i think the return of head function is overriding the global config from nuxt-seo module Any thoughts?