Skip to content

Commit bfcc4de

Browse files
authored
feat: add support for ALB (#1521)
close #598
1 parent bcca2fb commit bfcc4de

20 files changed

+6416
-2
lines changed

examples/events/alb/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

examples/events/alb/handler.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict'
2+
3+
const { env } = require('node:process')
4+
5+
const { stringify } = JSON
6+
7+
exports.hello = async function hello() {
8+
return {
9+
body: stringify({ foo: 'bar', IS_OFFLINE: env.IS_OFFLINE }),
10+
statusCode: 200,
11+
}
12+
}

0 commit comments

Comments
 (0)