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: '*',