add condition to robots.txt
This commit is contained in:
@@ -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: '*',
|
||||
|
||||
Reference in New Issue
Block a user