Skip to content

Commit

Permalink
WIP trying to get the fastboot options to have renderMode
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 26, 2021
1 parent a1d1a8a commit 9956dfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ember-cli-fastboot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ module.exports = {
}

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

fastbootMiddleware(req, resp, next);
Expand Down
2 changes: 2 additions & 0 deletions packages/ember-cli-fastboot/lib/broccoli/fastboot-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 9956dfa

Please sign in to comment.