Skip to content

Commit

Permalink
use renderMode from the fastboot schema if available
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 29, 2021
1 parent fc7e105 commit 63abd81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fastboot/src/ember-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class EmberApp {
this.appName = config.appName;
this.html = config.html;
this.sandboxRequire = config.sandboxRequire;
this.renderMode = config.renderMode;

if (process.env.APP_CONFIG) {
let appConfig = JSON.parse(process.env.APP_CONFIG);
Expand Down Expand Up @@ -300,7 +301,7 @@ class EmberApp {
let shouldRender = options.shouldRender !== undefined ? options.shouldRender : true;
let renderMode = process.env.EXPERIMENTAL_RENDER_MODE_SERIALIZE
? 'serialize'
: options.renderMode;
: options.renderMode || this.renderMode;
let bootOptions = buildBootOptions(shouldRender, renderMode);
let fastbootInfo = new FastBootInfo(req, res, {
hostWhitelist: this.hostWhitelist,
Expand Down

0 comments on commit 63abd81

Please sign in to comment.