Skip to content

Commit

Permalink
Fix historyApiFallback for nested paths #216 (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
aves84 authored and SpaceK33z committed Sep 8, 2016
1 parent 5ff079d commit c64c803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ function Server(compiler, options) {
var defaultFeatures = ["setup", "headers", "middleware"];
if(options.proxy)
defaultFeatures.push("proxy");
if(options.historyApiFallback)
defaultFeatures.push("historyApiFallback", "middleware");
defaultFeatures.push("magicHtml");
if(options.contentBase !== false)
defaultFeatures.push("contentBase");
if(options.historyApiFallback)
defaultFeatures.push("historyApiFallback", "middleware");
// compress is placed last and uses unshift so that it will be the first middleware used
if(options.compress)
defaultFeatures.unshift("compress");
Expand Down

0 comments on commit c64c803

Please sign in to comment.