serve-handler
serve-handler copied to clipboard
The foundation of `serve`
Hi folks, I would like to test my local build. I have already a local test CA and private key and certificate. I use [mkcert](https://github.com/FiloSottile/mkcert) for that. Are there any...
Serve currently returns the same strong ETag for a given resource regardless of the content encoding (e.g., when the resource is served using gzip vs. served without compression). This can...
Would be nice to support pre-compressed files (*.gz, *.br) if the request header supports the encoding. Still using if-modified-since and/or etag based on the uncompressed file's stats.
I'm using the `serve` package and I'd like to serve different 404 templates depending on the folder: - `en/asdasd` should show `en/404.html`. - `pt/asdasd` should show `pt/404.html`. - `asdasd` should...
Hi, I would like the server listen to a virtual path / base-path like this - localhost:/. I used the rewrite property but I didnt found a way that serve...
Hi, I'm looking for an asset oriented server. Yours seems great, not tested yet but I saw something weird in the code here : https://github.com/zeit/serve-handler/blob/master/src/index.js#L751 You could make the check...
This adds the modified date timestamp `details.mtime` to files. The timestamp gets rendered in directory listings. This is disabled by default but can be enabled by the new boolean option...
Is there any way I can set multiple `Set-Cookie` headers? Currently if I do the following, only the last item in the array, `b=b`, is set: ```js handler(request, response, {...
I want to serve a Create-React-App production build at different stages. So I want to set all [`REACT_APP_` environment variables](https://create-react-app.dev/docs/adding-custom-environment-variables/) during runtime, not at build time. In order to make...