Open luaVolk opened 5 years ago
I just have the same problem.
I think you may be looking for the option -i false
(autoIndex). Does using that option do what you'd like to happen?
@thornjad unfortunately not. I get a trailing slash on my paths and this breaks the react SPA :\
@damianobarbati have exact same issue, it prevents me from using http-server with my Vue/Nuxt app https://github.com/http-party/http-server/issues/656
What exactly happens when you use -i false
?
I'll also note that http-server is a static server and doesn't officially support SPA's, but I'm more than willing to help if I can
This issue has been inactive for 180 days
As the title says when the server adds a slash at the end when serving an index.html file from a directory besides the root.
I don't see an option to remove them and its a bit of a problem for me right now, as I'm using this as a development server and the target server does not have trailing slashes.