Skip to content

Commit b7e3cd6

Browse files
committed
pass renderMode as a visitOption to the FB Express Middleware
1 parent 47ab7cb commit b7e3cd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/ember-cli-fastboot/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,13 @@ module.exports = {
336336
this.fastboot = new FastBoot(fastbootOptions);
337337
}
338338

339+
let appConfig = this._getHostAppConfig();
340+
339341
let fastbootMiddleware = FastBootExpressMiddleware({
340-
fastboot: this.fastboot
342+
fastboot: this.fastboot,
343+
visitOptions: {
344+
renderMode: appConfig.fastboot.renderMode
345+
}
341346
});
342347

343348
fastbootMiddleware(req, resp, next);

0 commit comments

Comments
 (0)