Commit 25a0b66f authored by Max Stoiber's avatar Max Stoiber Committed by Dan Abramov
Browse files

Disable dot rule of connect-history-api-fallback (#422)

Ref #387
parent 623e1bd1
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -173,6 +173,8 @@ function addMiddleware(devServer) {
// Every unrecognized request will be forwarded to it.
var proxy = require(paths.appPackageJson).proxy;
devServer.use(historyApiFallback({
// Allow paths with dots in them to be loaded, reference issue #387
disableDotRule: true,
// For single page apps, we generally want to fallback to /index.html.
// However we also want to respect `proxy` for API calls.
// So if `proxy` is specified, we need to decide which fallback to use.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment