Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Overwrites other meta defined in nuxt.config.ts #5

Open
e-001 opened this issue Jan 10, 2023 · 0 comments
Open

Overwrites other meta defined in nuxt.config.ts #5

e-001 opened this issue Jan 10, 2023 · 0 comments

Comments

@e-001
Copy link

e-001 commented Jan 10, 2023

If you define meta in nuxt.config.ts, this plugin will overwrite it.

nuxt.options.app.head.meta = metaTags;

Which should instead:

      const existingMetaTags = nuxt.options.app.head.meta || []
      nuxt.options.app.head.meta = [...existingMetaTags, ...metaTags]
e-001 added a commit to e-001/nuxt-social-tags that referenced this issue Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant