river icon indicating copy to clipboard operation
river copied to clipboard

Serve `index.html` when user requests folder path in static file hosting

Open jamesmunns opened this issue 1 year ago • 2 comments

If we are serving static files and the user GETs a folder path URI like /, we should probably automatically serve /index.html.

jamesmunns avatar Sep 01 '24 19:09 jamesmunns

Worth mentioning this I guess: https://bjornlu.com/blog/trailing-slash-for-frameworks#servers

XiNiHa avatar Sep 26 '24 09:09 XiNiHa

I have a setup for this in my Pingora app. PR incoming

allan2 avatar Oct 10 '24 15:10 allan2