You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently index.html files can be served by ssIndices, but it'd be useful if you could serve HTML files without an extension, e.g. posts/mypost.html -> posts/mypost
Alternatives
wai-extra's rewrite middleware could be used to add the .html extension on every request, but this would then break index.html files. Conditionally rewriting on whether the path ends with a / is also possible, but this would cause a lot of confusion and wouldn't match how frameworks usually serve static HTML
The text was updated successfully, but these errors were encountered:
Currently
index.html
files can be served byssIndices
, but it'd be useful if you could serve HTML files without an extension, e.g.posts/mypost.html
->posts/mypost
Alternatives
wai-extra
's rewrite middleware could be used to add the.html
extension on every request, but this would then breakindex.html
files. Conditionally rewriting on whether the path ends with a/
is also possible, but this would cause a lot of confusion and wouldn't match how frameworks usually serve static HTMLThe text was updated successfully, but these errors were encountered: