What if the index.html is not in the root directory,such as it's in the src directory?
Closed this issue · 1 comments
hyq2015 commented
below setting not work!!! seems it dosen't support directory
app.use(history({
index: path.resolve(__dirname,"../src/index.html")
}));
bripkens commented
The configuration files describes how the HTTP request path should be changed. I extended the documentation to make this more explicit. This will hopefully resolve the confusion for you:
https://github.com/bripkens/connect-history-api-fallback/blob/master/README.md#index