Skip to content

Commit 991beca

Browse files
committed
use renderMode from the fastboot schema if available
1 parent 80bca92 commit 991beca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/fastboot/src/ember-app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class EmberApp {
4040
this.appName = config.appName;
4141
this.html = config.html;
4242
this.sandboxRequire = config.sandboxRequire;
43+
this.renderMode = config.renderMode;
4344

4445
if (process.env.APP_CONFIG) {
4546
let appConfig = JSON.parse(process.env.APP_CONFIG);
@@ -300,7 +301,7 @@ class EmberApp {
300301
let shouldRender = options.shouldRender !== undefined ? options.shouldRender : true;
301302
let renderMode = process.env.EXPERIMENTAL_RENDER_MODE_SERIALIZE
302303
? 'serialize'
303-
: options.renderMode;
304+
: options.renderMode || this.renderMode;
304305
let bootOptions = buildBootOptions(shouldRender, renderMode);
305306
let fastbootInfo = new FastBootInfo(req, res, {
306307
hostWhitelist: this.hostWhitelist,

0 commit comments

Comments
 (0)