Closed piotrpalek closed 9 years ago
Yes, that is the correct way to do it. The default is this.app.env === 'production'
so I would probably use this.app.env
Well the issue here is that you don't (yet) have the app object. And this
refers to the global variable in this context (whatever that variable is). So I couldn't really use this.app.env === 'production'
, it seems the way I've done it is the only way.
Sorry, its been a while since I've worked with ember-cli. But yea, that looks good to me then.
I wanted to set the
enabled
flag to true when I am on staging as well and had to do it this way:Is this the way to do it or am I missing something? I mean I am not sure if I should use the env variable explicitly like this (instead of using it through
app.env
).