serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

The foundation of `serve`

Results 90 serve-handler issues
Sort by recently updated
recently updated
newest added

Hi! We have such directories names in our static website `/public/doc/changelog/0.18` And when `serve-handler` handles requests we have 404 for such pages. I found reason - there is false-positive extname...

bug

Files: 1. `build/index.html` 2. `build/subdir/index.html` With `serve -s build`: - 1 work as expected. `localhost:5000` - 2 is being ignored, `localhost:5000/subdir` and `localhost:5000/subdir/index.html` give 404 or redirect to root (don't...

Using `serve` with the following `serve.json`: ```json { "headers": [ { "source": "index.html", "headers": [{ "key": "Origin-Isolation", "value": "?1" }] } ] } ``` gives the following: ``` $ serve...

For example, ``` /version/8.5.x/ ``` will be recognized as a file. This is a known issue. This line of code should not use `path.extname` to test a path https://github.com/vercel/serve-handler/blob/master/src/index.js#L608

how to get `/xxx.js?_callback=fn` return `fn([js-file-data])` with serve-handler

Great for single page applications, to be able to test fallbacks. So we'll be able to add a `--delay ` that each request will be delayed with.

Using serve to deliver a static pre-built create-react-app. `serve -s /web/build --listen 5000 --no-clipboard` The file `.well-known/apple-app-site-association` is part of the served directory but user receives the contents of `index.html`...

I have redirects I'd like to implement, but I'm not seeing a way to keep them from stripping the query parameters. Is there anyways I can keep `utm_val=something` in my...

When trying to request a file (both when using fetch from the browser or via httpie), the Content-Length header is present when performing a HEAD request, but absent when performing...

serve-handler will trim the ending `.html` suffix from url.pathname and make a redirect but forgot take the `search`, it may cause errors sometimes.