Skip to content

Commit c64c803

Browse files
aves84SpaceK33z
authored andcommitted
Fix historyApiFallback for nested paths #216 (#602)
1 parent 5ff079d commit c64c803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ function Server(compiler, options) {
256256
var defaultFeatures = ["setup", "headers", "middleware"];
257257
if(options.proxy)
258258
defaultFeatures.push("proxy");
259-
if(options.historyApiFallback)
260-
defaultFeatures.push("historyApiFallback", "middleware");
261259
defaultFeatures.push("magicHtml");
262260
if(options.contentBase !== false)
263261
defaultFeatures.push("contentBase");
262+
if(options.historyApiFallback)
263+
defaultFeatures.push("historyApiFallback", "middleware");
264264
// compress is placed last and uses unshift so that it will be the first middleware used
265265
if(options.compress)
266266
defaultFeatures.unshift("compress");

0 commit comments

Comments
 (0)