This PR updates the connect-history-api-fallback dependency to it's 1.x version and provides a history option so that it [history api fallback] can be configured (or removed entirely).
Note that setting { history: false } does not use the history fallback middleware at all, which is useful if the fallback pages are already being provided (such as through a proxy server).
Passing config to the history api fallback will help when:
a proxy server is being used and the proxy provides the route responses
the default index page (index.html) requires a different filename
different html needs to be served for different routes (such as embedded json to bootstrap the app)
end users need to apply additional configuration to rewrite urls - see #5
Not sure if option name history should be something else? webpack-dev-server calls the option historyApiFallback.
Hello again,
This PR updates the connect-history-api-fallback dependency to it's 1.x version and provides a history option so that it [history api fallback] can be configured (or removed entirely).
Note that setting
{ history: false }
does not use the history fallback middleware at all, which is useful if the fallback pages are already being provided (such as through a proxy server).Passing config to the history api fallback will help when:
Not sure if option name
history
should be something else? webpack-dev-server calls the optionhistoryApiFallback
.Thoughts?