From d51e93a126d9297cbce53771abcbc8048009ddba Mon Sep 17 00:00:00 2001 From: Nik Petersen Date: Wed, 13 Dec 2017 10:53:08 -0800 Subject: [PATCH 1/2] Check for EMBER_CLI_FASTBOOT in env before including files --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 09186cc6..1be0cb2a 100644 --- a/index.js +++ b/index.js @@ -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('EMBER_CLI_FASTBOOT' in process.env) { + return false; + } else { + return this.app.env !== 'production'; + } }, _findHost() { From 89c4a0cc9eaf138668d78424e46882acaf87307e Mon Sep 17 00:00:00 2001 From: Nik Petersen Date: Wed, 13 Dec 2017 19:52:41 -0800 Subject: [PATCH 2/2] Check that the env var is true for fastboot --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1be0cb2a..bc12b50d 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ module.exports = { // https://github.com/joostdevries/twiddle-backend/pull/28 is merged. // return !!this.app.tests; - if('EMBER_CLI_FASTBOOT' in process.env) { + if(process.env && process.env.EMBER_CLI_FASTBOOT) { return false; } else { return this.app.env !== 'production';