From eea8aa306ea83fc524ca5659a0a408ab6cf2cff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 10 Dec 2023 23:44:20 +0100 Subject: [PATCH] Prevent search indexation for now --- src/app/[spaceId]/[[...pathname]]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/[spaceId]/[[...pathname]]/page.tsx b/src/app/[spaceId]/[[...pathname]]/page.tsx index 52bac0bc5..e94528991 100644 --- a/src/app/[spaceId]/[[...pathname]]/page.tsx +++ b/src/app/[spaceId]/[[...pathname]]/page.tsx @@ -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', }; }