Skip to content

Commit

Permalink
feat: add support for ALB (#1521)
Browse files Browse the repository at this point in the history
close #598
  • Loading branch information
ihendriks committed Nov 28, 2022
1 parent bcca2fb commit bfcc4de
Show file tree
Hide file tree
Showing 20 changed files with 6,416 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/events/alb/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
12 changes: 12 additions & 0 deletions examples/events/alb/handler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict'

const { env } = require('node:process')

const { stringify } = JSON

exports.hello = async function hello() {
return {
body: stringify({ foo: 'bar', IS_OFFLINE: env.IS_OFFLINE }),
statusCode: 200,
}
}
Loading

0 comments on commit bfcc4de

Please sign in to comment.