scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

No longer serving html files without extension? #80

Closed solugebefola closed 6 years ago

solugebefola commented 6 years ago

I don't know if I am doing something wrong, but my .html files are no longer being served on localhost if I leave the .html extension off in the url. The server is defaulting to index.html each time.

from the command line: pushstate-server . 9000 Then http://localhost:9000/about serves up index.html instead of about.html.

I looked at the code and the extensions option for serveStatic is set to html so it should be searching for about.html, right?

solugebefola commented 6 years ago

I uninstalled and reinstalled, and that seems to have fixed the problem. I think it was a corrupted dependency issue, but I can't say.