`--index` if index.html exists?
Closed this issue · 3 comments
DUOLabs333 commented
It would be nice if by default, if index.html is found, miniserve
does --index index.html
.
svenstaro commented
Hm not sure, this might be surprising behavior for users who are used to miniserve just serving the current dir as is. If you did that and had --upload
active, someone could upload an index.html
and then miniserve would stop serving the dir index. I'm not sure I like that behavior.
svenstaro commented
We have something like this now with --readme. Does that work for you?
DUOLabs333 commented
Not really, but I don't really need this feature anymore --- I just made a wrapper script that hardcodes --index
.