Skip to content

Commit

Permalink
Remove configuration provided hostname and port from rendered resourc…
Browse files Browse the repository at this point in the history
…e paths as they will prevent reverse proxy usage and are superfluous.
  • Loading branch information
Tobias Käfer committed May 5, 2017
1 parent 043e9e2 commit 20aeac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function parseOptions(args) {
options.revealBasePath = revealBasePath;
options.highlightThemePath = highlightThemePath;

options.base = () => options.host && options.port && !options.static ? `//${options.host}:${options.port}` : '.';
options.base = () => options.static ? '.' : '';
options.template = () => template;
options.templateListing = () => templateListing;
options.themeUrl = () => getThemeUrl(options);
Expand Down

0 comments on commit 20aeac4

Please sign in to comment.