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

It's not supporting Full Refresh like serve npm package. I'm trying to load index.html from build folder with the help of NGINX.

With [serve-static](https://github.com/expressjs/serve-static) it'd looks like: ```js const serveStatic = require('serve-static') const serve = serveStatic('build'); serve(req, res, () => { // if we're there, the file was not found res.end('...') });...

### Context - Serving react app under `/app` prefix e.g. `example.com/app/products` - Installed `serve` and customized with `serve.json` - Used `"homepage":"/app"` in `package.json` according to CRA [docs](https://facebook.github.io/create-react-app/docs/deployment#building-for-relative-paths) - Asset path...

Following https://github.com/zeit/serve/issues/536 As I explain [in this comment](https://github.com/zeit/serve/issues/536#issuecomment-506448723), IMO it's not a legit way of using serve, as it's a workflow that even will cause an error in `bash`. But...

I was trying to rewrite all urls that looked like a/b/:path+ to c/d/:path, so in practice: `a/b/file` => `c/d/file` `a/b/dir/dir/dir/file` => `c/d/dir/dir/file` However, it didn't work. After some digging I...

My use-case: I want to deploy a folder of photos, and have the directory page use a lightbox to view the photos. Would be really awesome to be able to...

Hi 👋🏻 I generally publish my static site under some base path (not directly in root domain). Every time I make a build I have to create a dummy dirs...

the version of minimatch used in serve-handler has a security vulnerability. It has to be updated to the latest version.

I think serve-handler isn't implementing [RFC 5987](https://datatracker.ietf.org/doc/html/rfc5987) correctly. When I attempt to serve a file with the name `DALL·E 2024-01-17.png` (note the bullet point) I get the following error: ```bash...

This library depends on the [`fast-url-parser` package](https://github.com/petkaantonov/urlparser) which depends on the [`punycode` builtin module](https://nodejs.org/docs/latest/api/punycode.html)... but since Node.js 21, this module is deprecated: ``` (node:4284) [DEP0040] DeprecationWarning: The `punycode` module is...