Skip to content

Commit be9a8cb

Browse files
committed
Revert "Fix historyApiFallback for nested paths #216 (#602)"
This reverts commit c64c803.
1 parent c760ffc commit be9a8cb

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
@@ -293,11 +293,11 @@ function Server(compiler, options) {
293293
var defaultFeatures = ["setup", "headers", "middleware"];
294294
if(options.proxy)
295295
defaultFeatures.push("proxy");
296+
if(options.historyApiFallback)
297+
defaultFeatures.push("historyApiFallback", "middleware");
296298
defaultFeatures.push("magicHtml");
297299
if(options.contentBase !== false)
298300
defaultFeatures.push("contentBase");
299-
if(options.historyApiFallback)
300-
defaultFeatures.push("historyApiFallback", "middleware");
301301
// compress is placed last and uses unshift so that it will be the first middleware used
302302
if(options.compress)
303303
defaultFeatures.unshift("compress");

0 commit comments

Comments
 (0)