From fabd3885cb3a504bf2717af5b417e897801ed776 Mon Sep 17 00:00:00 2001 From: Sam Selikoff Date: Thu, 2 Jul 2020 16:44:42 -0400 Subject: [PATCH] Add Fastboot to addon blacklist for dummy app (#2004) We have ember-cli-fastboot installed so it can be made available to some of the test projects, but we never use it to actually serve the dummy app (which is the docs app). Thus, if a new user clones + runs the repo, unless they have the FASTBOOT_DISABLED ENV var set, `ember s` will try to serve the dummy app via FastBoot which will cause errors. With the addon blacklisted, ember-cli-fastboot will just never be able to affect the dummy app at all. --- ember-cli-build.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ember-cli-build.js b/ember-cli-build.js index 24e43c1c8..19da1eb1e 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -2,17 +2,20 @@ const EmberAddon = require("ember-cli/lib/broccoli/ember-addon"); -module.exports = function(defaults) { +module.exports = function (defaults) { let app = new EmberAddon(defaults, { "ember-cli-babel": { - includePolyfill: true + includePolyfill: true, }, "ember-cli-addon-docs-esdoc": { packages: [ "ember-cli-mirage", - { name: "miragejs", sourceDirectory: "lib" } - ] - } + { name: "miragejs", sourceDirectory: "lib" }, + ], + }, + addons: { + blacklist: ["ember-cli-fastboot"], + }, }); /*