@@ -106,6 +106,8 @@ FastBootBuild.prototype.appOptions = function() {
106106FastBootBuild . prototype . buildConfigTree = function ( tree ) {
107107 var FastBootConfig = require ( './fastboot-config' ) ;
108108 var env = this . app . env ;
109+ var config = this . project . config ( env ) ;
110+ var fastbootConfig = config . fastboot ;
109111
110112 // Create a new Broccoli tree that writes the FastBoot app's
111113 // `package.json`.
@@ -115,7 +117,8 @@ FastBootBuild.prototype.buildConfigTree = function(tree) {
115117 assetMapPath : this . assetMapPath ,
116118 outputPaths : this . app . options . outputPaths ,
117119 ui : this . ui ,
118- fastbootAppConfig : this . project . config ( env ) . fastboot
120+ fastbootAppConfig : fastbootConfig ,
121+ appConfig : config
119122 } ) ;
120123} ;
121124
@@ -131,16 +134,8 @@ FastBootBuild.prototype.buildFastBootProject = function() {
131134 var Project = require ( 'ember-cli/lib/models/project' ) ;
132135 var oldProject = this . project ;
133136 var project = new Project ( oldProject . root , oldProject . pkg , oldProject . ui , oldProject . cli ) ;
134- project . config = function config ( ) {
135- var config = Object . getPrototypeOf ( this ) . config . apply ( this , arguments ) ;
136137
137- config . APP = config . APP || { } ;
138- config . APP . autoboot = false ;
139-
140- return config ;
141- } ;
142-
143- return project ;
138+ return this . project = project ;
144139} ;
145140
146141module . exports = FastBootBuild ;
0 commit comments