No follow for non-production env

This commit is contained in:
Julien Nahum
2024-01-12 15:59:01 +01:00
parent ea7041be28
commit b29cdf8d8a
3 changed files with 6 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ useOpnSeoMeta({
if (!template || !template.value) return null
return template.value.image_url
},
robots() {
robots: () => {
if (!template || !template.value) return null
return template.value.publicly_listed ? null : 'noindex'
}