N
Nuxt9mo 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
4 Replies
Ųŋĸńōŵņ
Ųŋĸńōŵņ9mo ago
Not sure if this helps, but this works for me: <script setup> useSeoMeta({ title : 'My Amazing Site', ogTitle: 'My Amazing Site', }) </script>
Single
Single9mo ago
Yepp, useSeoMeta is the way to go
Pixsa
Pixsa2w ago
I want to have them in initial html, so Facebook bots can see it, any tips? I am on vercel and ssr does not seem to work
manniL
manniL2w ago
With SSR: false, these will never be in the HTML as none is generated for each page

Did you find this page helpful?