vercel / serve

Static file serving and directory listing
https://npmjs.com/package/serve
MIT License
9.35k stars 685 forks source link

wrong wasm mime type #668

Open sancelot opened 3 years ago

sancelot commented 3 years ago

Hi, Wasm files mime type should be application/wasm,

This is why I can not use wasm files with serve.

here is specification : https://www.w3.org/TR/wasm-web-api-1/

refs https://github.com/vercel/serve/issues/303

Regards S.Ancelot

warren-bank commented 2 years ago

shameless self-promotion alert:
this feature is fixed in my @warren-bank/serve fork of serve

notes:

sancelot commented 2 years ago

@warren-bank , ok, but my project is using cra and react-scripts, so how can I integrate it ?

warren-bank commented 2 years ago

as clarification for anybody else who may be reading this:

and my answer to you would be..