Good SEO practice of netlify deployment url and custom domain

Hugo can generate robots.txt for you. Allow or disallow according to the environnement (Netlify or other) this is how I did it for this project:

You must enable robots txt generating in your configuration file. Checkout the doc.