N
Nuxt4mo 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
Ųŋĸńōŵņ
Ųŋĸńōŵņ4mo ago
Not sure if this helps, but this works for me: <script setup> useSeoMeta({ title : 'My Amazing Site', ogTitle: 'My Amazing Site', }) </script>
Single
Single4mo ago
Yepp, useSeoMeta is the way to go
Want results from more Discord servers?
Add your server