diff --git a/front/pages/_document.tsx b/front/pages/_document.tsx index de8f687ea861..94b6adc330d6 100644 --- a/front/pages/_document.tsx +++ b/front/pages/_document.tsx @@ -1,5 +1,7 @@ import Document, { Head, Html, Main, NextScript } from "next/document"; +const { ENABLE_BOT_CRAWLING } = process.env; + class MyDocument extends Document { render() { return ( @@ -11,6 +13,9 @@ class MyDocument extends Document { href="https://fonts.gstatic.com" crossOrigin="anonymous" /> + {ENABLE_BOT_CRAWLING !== "true" && ( + + )} diff --git a/k8s/configmaps/front-configmap.yaml b/k8s/configmaps/front-configmap.yaml index c2d92a46d029..4e65abe39a6b 100644 --- a/k8s/configmaps/front-configmap.yaml +++ b/k8s/configmaps/front-configmap.yaml @@ -9,3 +9,4 @@ data: DD_LOGS_INJECTION: "true" DD_RUNTIME_METRICS_ENABLED: "true" NODE_ENV: "production" + ENABLE_BOT_CRAWLING: "true"