From ff9135bcc6ee0f1edda3412b5f49648c0f01f0fa Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 11 Jun 2018 11:26:55 +0200 Subject: [PATCH] Added use cases for this library (#23) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index a23e00e..7a8d38c 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,20 @@ await handler(request, response, undefined, { }); ``` +## Use Cases + +There are two environments in which [ZEIT](https://zeit.co) uses this package: + +### Production + +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. + +### Development + +When testing your project on your local device, we suggest using [serve](https://github.com/zeit/serve). + +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`. + ## Author Leo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo)) - [ZEIT](https://zeit.co)