istio.io icon indicating copy to clipboard operation
istio.io copied to clipboard

a better robots.txt

Open craigbox opened this issue 4 months ago • 0 comments

Once #16559 is finished, we should know on any given Netlify deploy, if we are "production" or not, and what our baseURL is.

#16558 adds a static robots.txt file. We should be able to update it to something more like

User-agent: *
{{- if eq hugo.Environment "production" }}
Sitemap: {{ "sitemap.xml" | absURL }}
{{- else }}
Disallow: /
{{- end }}

at this point.

craigbox avatar Jun 05 '25 23:06 craigbox