Skip to content

Commit 9956dfa

Browse files
committed
WIP trying to get the fastboot options to have renderMode
1 parent a1d1a8a commit 9956dfa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/ember-cli-fastboot/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ module.exports = {
337337
}
338338

339339
let fastbootMiddleware = FastBootExpressMiddleware({
340-
fastboot: this.fastboot
340+
fastboot: this.fastboot,
341+
visitOptions: {
342+
renderMode: this.fastbootOptions.renderMode
343+
}
341344
});
342345

343346
fastbootMiddleware(req, resp, next);

packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = class FastBootConfig extends Plugin {
3131
this.fastbootConfig = {};
3232
this.fastbootConfig[appConfigModule] = options.appConfig;
3333
this._fileToChecksumMap = {};
34+
this.renderMode = this.fastbootAppConfig.renderMode;
3435

3536
if (this.fastbootAppConfig && this.fastbootAppConfig.htmlFile) {
3637
this.htmlFile = this.fastbootAppConfig.htmlFile;
@@ -174,6 +175,7 @@ module.exports = class FastBootConfig extends Plugin {
174175
schemaVersion: LATEST_SCHEMA_VERSION,
175176
manifest: this.manifest,
176177
hostWhitelist: this.normalizeHostWhitelist(),
178+
renderMode: this.renderMode,
177179
config: this.fastbootConfig,
178180
appName: this.appName,
179181
}

0 commit comments

Comments
 (0)