N
Nuxt6mo ago
martine

meta tags previews not displaying with ssr: false and nuxt generate

I want to set og parameters per route with useHead(). I'm using nuxt generate and ssr: false. I'm not using any dynamic parameters. After nuxt generate i see that tags are not inserted in the final HTML. In the bowser i can see the og:parameters but they do not display when sharing. Looks like they get inserted too late
2 Replies
Ųŋĸńōŵņ
Ųŋĸńōŵņ6mo ago
Not sure if this helps, but this works for me: <script setup> useSeoMeta({ title : 'My Amazing Site', ogTitle: 'My Amazing Site', }) </script>
Single
Single6mo ago
Yepp, useSeoMeta is the way to go

Did you find this page helpful?