npminsights icon indicating copy to clipboard operation
npminsights copied to clipboard

Serve different robots.txt based on the env

Open ValentinH opened this issue 3 years ago • 0 comments

In production, we want to allow all robots. On other env (especially previews), we should block them.

We can probably use a redirects rule in the next.config.js to serve a different file based on the process.env.VERCEL_ENV value.

ValentinH avatar Feb 23 '23 08:02 ValentinH