npminsights
npminsights copied to clipboard
Serve different robots.txt based on the env
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.