add condition to robots.txt

This commit is contained in:
2026-05-16 08:01:05 +04:00
parent 4907c230a3
commit 53d6a9c7f0
+11
View File
@@ -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: '*',