Skip to content

Commit

Permalink
pass renderMode as a visitOption to the FB Express Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 29, 2021
1 parent 779e888 commit 0293489
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ember-cli-fastboot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,13 @@ module.exports = {
this.fastboot = new FastBoot(fastbootOptions);
}

let appConfig = this._getHostAppConfig();

let fastbootMiddleware = FastBootExpressMiddleware({
fastboot: this.fastboot
fastboot: this.fastboot,
visitOptions: {
renderMode: appConfig.fastboot.renderMode
}
});

fastbootMiddleware(req, resp, next);
Expand Down

0 comments on commit 0293489

Please sign in to comment.