Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 8b1d501

Browse files
docs(lambda-at-edge-compat): document enable compression flag
1 parent ba1d338 commit 8b1d501

File tree

1 file changed

+10
-0
lines changed
  • packages/compat-layers/lambda-at-edge-compat

1 file changed

+10
-0
lines changed

packages/compat-layers/lambda-at-edge-compat/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ module.exports.render = async (event, context) => {
2020
return responsePromise;
2121
};
2222
```
23+
24+
## Options
25+
26+
### Gzip compression
27+
28+
```js
29+
const { req, res, responsePromise } = cloudFrontCompat(event.Records[0].cf, {
30+
enableHTTPCompresssion: true // false by default
31+
});
32+
```

0 commit comments

Comments
 (0)