© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
why is useSeoMeta not working? - Nuxt
N
Nuxt
•
2y ago
•
3 replies
hz2222
why is useSeoMeta not working?
I am trying to use dynamic values
here is my code
:
onMounted
(async
(
)
=
>
{
const response
= await fetchData
(
/recipe/${recipeId}
/recipe/${recipeId}
)
recipe
.value
= response
.data
}
)
useSeoMeta
(
{
title
:
"Best Cooking Site
"
,
meta
:
[
{ name
:
"viewport
"
, content
:
"width
=device
-width
, initial
-scale
=1
"
}
]
,
ogTitle
: recipeId
,
ogDescription
:
(
)
=
> recipe
.value
?
.attributes
.description
,
ogImage
:
(
)
=
>
${picUrl}/${recipe.value.attributes.picURL}
${picUrl}/${recipe.value.attributes.picURL}
,
ogUrl
: recipeId
,
twitterTitle
: recipeId
,
twitterDescription
:
(
)
=
> recipe
.value
?
.attributes
.description
,
twitterImage
:
(
)
=
>
${picUrl}/${recipe.value.attributes.picURL}
${picUrl}/${recipe.value.attributes.picURL}
,
twitterCard
:
"summary
"
}
)
Nuxt
Join
Nuxt Community Chat Server
31,632
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
useSeoMeta with i18n
N
Nuxt / ❓・help
13mo ago
Async Data and useSeoMeta
N
Nuxt / ❓・help
2y ago
why my css is not working in page?
N
Nuxt / ❓・help
2y ago