Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abdulhadi-lababidi opened this issue Dec 10, 2022 · 1 comment

Comments

@abdulhadi-lababidi
Copy link

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
Copy link
Author

after further debugging, the plugin will not work even if you use it inside components in case you used head function instead of head object inside nuxt.config.js file

The plugin assumes that the head is always an object, what a waste of time!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant