File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,10 @@ class EmberApp {
298298 let buildSandboxPerVisit = options . buildSandboxPerVisit || false ;
299299
300300 let shouldRender = options . shouldRender !== undefined ? options . shouldRender : true ;
301- let bootOptions = buildBootOptions ( shouldRender ) ;
301+ let renderMode = process . env . EXPERIMENTAL_RENDER_MODE_SERIALIZE
302+ ? 'serialize'
303+ : options . renderMode ;
304+ let bootOptions = buildBootOptions ( shouldRender , renderMode ) ;
302305 let fastbootInfo = new FastBootInfo ( req , res , {
303306 hostWhitelist : this . hostWhitelist ,
304307 metadata : options . metadata ,
@@ -355,17 +358,16 @@ class EmberApp {
355358 * Builds an object with the options required to boot an ApplicationInstance in
356359 * FastBoot mode.
357360 */
358- function buildBootOptions ( shouldRender ) {
361+ function buildBootOptions ( shouldRender , renderMode ) {
359362 let doc = new SimpleDOM . Document ( ) ;
360363 let rootElement = doc . body ;
361- let _renderMode = process . env . EXPERIMENTAL_RENDER_MODE_SERIALIZE ? 'serialize' : undefined ;
362364
363365 return {
364366 isBrowser : false ,
365367 document : doc ,
366368 rootElement,
367369 shouldRender,
368- _renderMode,
370+ _renderMode : renderMode ,
369371 } ;
370372}
371373
You can’t perform that action at this time.
0 commit comments