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


#1

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!


#2

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


#3

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

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


#4

thanks, i’ll check this out!


#5

@broerse How does this work?


#6

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