Deployment targets template for robots exclusion

Hi there,

Say I have two deployment targets:

deployment:
  targets:
    - name: "test"
      URL: "s3://private.example.com?region=us-east-1"
    - name: "prod"
      URL: "s3://example.com?region=us-east-1"

How do I put in my template that if !prod deployment target, there should be a <meta name="robots" content="noindex" /> exclusion line?

Been searching around but can’t find the answer. Perhaps my Google-fu is weak.