Prevent search indexation for now

This commit is contained in:
Samy Pessé
2023-12-10 23:44:20 +01:00
parent cf925fd21c
commit eea8aa306e
+2 -1
View File
@@ -73,6 +73,7 @@ export async function generateMetadata({ params }: { params: PagePathParams }):
openGraph: {
images: [customization.socialPreview.url ?? `.gitbook/ogimage/${page.id}`],
},
robots: space.visibility === 'public' ? 'index, follow' : 'noindex, nofollow',
// TODO: remove once the development is finished
robots: space.visibility === 'public' && 0 ? 'index, follow' : 'noindex, nofollow',
};
}