Skip to content

wai-app-static: serve HTML files without extension #999

@rniii

Description

@rniii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions