Closed sandydoo closed 7 years ago
That env variable is being deprecated with FastBoot 1.0 so there won't be a way of differentiating between FastBoot and regular builds. I believe this is because ember fastboot
and ember serve
are being united. It's actually a breaking change for a lot of addons. Moving forward, the way to exclude assets from being run in FastBoot is to wrap the scripts in an if block that checks for the FastBoot
global. So the assets are included in the build, but they won't be run in FastBoot. I also added a check to only wrap js assets. More detailed guide to migrating and managing assets in FastBoot here
thanks for the info @sandydoo
As per https://github.com/ember-fastboot/ember-cli-fastboot/issues/387