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

@@ -132,7 +132,7 @@ useOpnSeoMeta({
}
return (form && form.value.cover_picture) ? form.value.cover_picture : null
},
robots () {
robots: () => {
return (form && form.value.can_be_indexed) ? null : 'noindex, nofollow'
}
})

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'
}