0.0.1 • Published 4 years ago
@ohoareau/aws-cf-next v0.0.1
aws-cf-next
Use your next in your lambda @edge (below CloudFront) without changing your code. The wrapper will detect if your are running into local mode (non-cloudfront) or AWS-mode (via CloudFront)
Introduction
This wrapper will detect incoming event/payload from CloudFront and it to next server side function.
Usage
const cfnext = require('@ohoareau/aws-cf-next');
...
module.exports = {handler: cfnext(myHandler)}
0.0.1
4 years ago