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?
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 toindex.html
each time.from the command line:
pushstate-server . 9000
Thenhttp://localhost:9000/about
serves upindex.html
instead ofabout.html
.I looked at the code and the extensions option for
serveStatic
is set tohtml
so it should be searching forabout.html
, right?