Skip to content

Commit

Permalink
Merge pull request #24 from mydea/fn/fix-deploy-plugin
Browse files Browse the repository at this point in the history
Ensure urlFetcher is properly passed in deploy plugin
  • Loading branch information
mydea authored Jan 4, 2022
2 parents b093421 + 54f697a commit 2db052b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ember-cli-deploy-prerender/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ module.exports = {
let port = this.readConfig('port');
let viewportWidth = this.readConfig('viewportWidth');
let viewportHeight = this.readConfig('viewportHeight');
let urlFetcher = this.readConfig('urlFetcher');

// This is supposed to be a function, so we cannot use readConfig() here
// As this will evaluate the function at runtime and take the function return value
let urlFetcher = this.pluginConfig.urlFetcher || undefined;

let Builder = this.project.require('ember-cli/lib/models/builder');

Expand Down

0 comments on commit 2db052b

Please sign in to comment.