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.
Discussed in https://github.com/orgs/h3js/discussions/1135
H3 built-in
serveStaticutility can support mimes for common file extensions to avoid sending them asapplication/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.