From 9956dfa0f65af3106ca251751c9b2f39e0bcef7c Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Fri, 26 Mar 2021 17:56:58 +0000 Subject: [PATCH] WIP trying to get the fastboot options to have renderMode --- packages/ember-cli-fastboot/index.js | 5 ++++- packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ember-cli-fastboot/index.js b/packages/ember-cli-fastboot/index.js index 10ee7b75b..373cc0826 100644 --- a/packages/ember-cli-fastboot/index.js +++ b/packages/ember-cli-fastboot/index.js @@ -337,7 +337,10 @@ module.exports = { } let fastbootMiddleware = FastBootExpressMiddleware({ - fastboot: this.fastboot + fastboot: this.fastboot, + visitOptions: { + renderMode: this.fastbootOptions.renderMode + } }); fastbootMiddleware(req, resp, next); diff --git a/packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js b/packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js index 0f7e5b659..84e334e69 100644 --- a/packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js +++ b/packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js @@ -31,6 +31,7 @@ module.exports = class FastBootConfig extends Plugin { this.fastbootConfig = {}; this.fastbootConfig[appConfigModule] = options.appConfig; this._fileToChecksumMap = {}; + this.renderMode = this.fastbootAppConfig.renderMode; if (this.fastbootAppConfig && this.fastbootAppConfig.htmlFile) { this.htmlFile = this.fastbootAppConfig.htmlFile; @@ -174,6 +175,7 @@ module.exports = class FastBootConfig extends Plugin { schemaVersion: LATEST_SCHEMA_VERSION, manifest: this.manifest, hostWhitelist: this.normalizeHostWhitelist(), + renderMode: this.renderMode, config: this.fastbootConfig, appName: this.appName, }