How can I run a blueprint when I run ember build for a particular environment?

What I want to do is run a custom blueprint when I run ember build --environment=staging. In this blueprint, I want to set up some content-for tags. Any idea how to do this?

Thanks!

Nevermind. Looks like what I needed was an in-repo-addon, not a blueprint.

I wanted to do something like this for a staging robots.txt

You can take a look at the source to do this:

thanks, i’ll check this out!

@broerse How does this work?

We use the treeForPublic hook to do this. If you add this module it just works. See it in action: