Skip to content

Commit

Permalink
Merge pull request #348 from demersus/feature/fastboot-safe
Browse files Browse the repository at this point in the history
Fastboot Safe
  • Loading branch information
san650 authored Jan 6, 2018
2 parents 5718348 + 89c4a0c commit 3689d8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ module.exports = {
// TODO: In order to make the addon work in EmberTwiddle, we cannot use // the `tests` prop til
// https://github.com/joostdevries/twiddle-backend/pull/28 is merged.
// return !!this.app.tests;
return this.app.env !== 'production';

if(process.env && process.env.EMBER_CLI_FASTBOOT) {
return false;
} else {
return this.app.env !== 'production';
}
},

_findHost() {
Expand Down

0 comments on commit 3689d8e

Please sign in to comment.