You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an addon that's made for testing & development, so I'm using ember-cli's isEnabled hook to disable the addon in production environments.
isEnabled(){returnthis.app.env!=="production";}
I just noticed that this returns false when ember deploy production is run. The deploy completes, but what is shipped to gh-pages is not a complete addon docs app. The docs subfolder is missing and the app errors when it tries to request the json file with all modules.
For now I've set isEnabled to always return true, but I'm wondering if I can somehow have this hook detect if it's running as part of an addon docs deploy?
The text was updated successfully, but these errors were encountered:
I've got an addon that's made for testing & development, so I'm using ember-cli's
isEnabled
hook to disable the addon in production environments.I just noticed that this returns
false
whenember deploy production
is run. The deploy completes, but what is shipped to gh-pages is not a complete addon docs app. Thedocs
subfolder is missing and the app errors when it tries to request the json file with all modules.For now I've set
isEnabled
to always returntrue
, but I'm wondering if I can somehow have this hook detect if it's running as part of an addon docs deploy?The text was updated successfully, but these errors were encountered: