You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://spectrum.chat/zeit)
7
6
8
-
This package represents the core of [serve](https://github.com/zeit/serve). It can be plugged into any HTTP server and is responsible for routing requests and handling responses.
7
+
This package represents the core of [serve](https://github.com/vercel/serve). It can be plugged into any HTTP server and is responsible for routing requests and handling responses.
9
8
10
9
In order to customize the default behaviour, you can also pass custom routing rules, provide your own methods for interacting with the file system and much more.
11
10
@@ -23,7 +22,7 @@ You can also use [npm](https://www.npmjs.com/) instead, if you'd like:
23
22
npm install serve-handler
24
23
```
25
24
26
-
Next, add it to your HTTP server. Here's an example using [micro](https://github.com/zeit/micro):
25
+
Next, add it to your HTTP server. Here's an example using [micro](https://github.com/vercel/micro):
**NOTE:** It's important that – for native methods like `createReadStream` – all arguments are passed on to the native call.
315
314
316
-
## Use Cases
317
-
318
-
There are two environments in which [ZEIT](https://zeit.co) uses this package:
319
-
320
-
### Production
321
-
322
-
When deploying your static project to [Now](https://zeit.co/now), you can add any of the [configuration options](https://github.com/zeit/serve-handler#options) to the `static` property within `now.json` and they will be considered when handling requests to your deployment.
323
-
324
-
### Development
325
-
326
-
When testing your project on your local device, we suggest using [serve](https://github.com/zeit/serve).
327
-
328
-
Since it comes with support for `serve-handler` out of the box, you can create a `serve.json` file to customize its behavior. It will also read the configuration from `static` inside `now.json`.
329
-
330
315
## Author
331
316
332
-
Leo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo)) - [ZEIT](https://zeit.co)
317
+
Leo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo)) - [Vercel](https://vercel.com)
0 commit comments