Skip to content

Commit

Permalink
Update lambda.md in docs/source/deployment (#5510)
Browse files Browse the repository at this point in the history
Fixed missing closing tag for code block that made formatting for the rest of the page all weird

Co-authored-by: David Glasser <glasser@apollographql.com>
  • Loading branch information
fezproof and glasser authored Jul 20, 2021
1 parent 396af01 commit 4c38baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/source/deployment/lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,15 @@ exports.handler = server.createHandler({

## Configuring the underlying Express integration

Because `apollo-server-lambda` is built on top of `apollo-server-express`, you can specify the same options that `apollo-server-express` accepts in `getMiddleware` (or `applyMiddleware`, other than `app`) as the `expressGetMiddlewareOptions` option to `createHandler. The default value of this option is `{path: '/'}` (and this value of `path` will be used unless you explicitly override it). For example:
Because `apollo-server-lambda` is built on top of `apollo-server-express`, you can specify the same options that `apollo-server-express` accepts in `getMiddleware` (or `applyMiddleware`, other than `app`) as the `expressGetMiddlewareOptions` option to `createHandler`. The default value of this option is `{path: '/'}` (and this value of `path` will be used unless you explicitly override it). For example:

```js
exports.handler = server.createHandle({
expressGetMiddlewareOptions: {
disableHealthCheck: true,
}
});
```

## Getting request info

Expand Down

0 comments on commit 4c38baa

Please sign in to comment.