From 53d6a9c7f00ae75c9c5e28b86d44b564235f6ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 16 May 2026 08:01:05 +0400 Subject: [PATCH] add condition to robots.txt --- app/robots.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/robots.js b/app/robots.js index 101e6bc..57e9bdc 100644 --- a/app/robots.js +++ b/app/robots.js @@ -1,4 +1,15 @@ export default function robots() { + const isProduction = process.env.NEXT_PUBLIC_ENV === 'production'; + + if (!isProduction) { + return { + rules: { + userAgent: '*', + disallow: '/', + }, + } + } + return { rules: { userAgent: '*',