Skip to content

support default and custom mimes for serveStatic #1136

@pi0

Description

@pi0

Discussed in https://github.com/orgs/h3js/discussions/1135

H3 built-in serveStatic utility can support mimes for common file extensions to avoid sending them as application/octet-stream.

We cannot depend on external packages to keep package size minimal but a list of common extensions can be aded.

We probably also need to support a new option to allow custom mime resolution with more extensions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions