nuxt-seo icon indicating copy to clipboard operation
nuxt-seo copied to clipboard

How to merge default options with head function options in nuxt.config.js file

Open abdulhadi-lababidi opened this issue 1 year ago • 1 comments

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?

abdulhadi-lababidi avatar Dec 10 '22 08:12 abdulhadi-lababidi