Closed vishalyadaviit closed 5 years ago
Hi @nemeton-x I'll review your request.
Hi @nemeton-x Try this:
// nuxt.config.js
robots: [
{
// all environment
UserAgent: ['Googlebot', 'Bingbot'],
// disallow '/admin', only production
Disallow: () => (process.env.NODE_ENV !== 'production') ? [] : ['/admin']
}
]
So my requirement is such that I would like to generate robot.txt that block everything for my development platform but only certain things in production.