File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ npm install @probot/adapter-aws-lambda-serverless
12
12
13
13
``` javascript
14
14
// handler.js
15
- const {
15
+ import {
16
16
createLambdaFunction ,
17
17
createProbot ,
18
- } = require ( " @probot/adapter-aws-lambda-serverless" ) ;
19
- const appFn = require ( " ./" ) ;
20
- module . exports . lambdaFn = createLambdaFunction (appFn, {
18
+ } from " @probot/adapter-aws-lambda-serverless" ;
19
+ import appFn from " ./app.js " ;
20
+ export const lambdaFn = createLambdaFunction (appFn, {
21
21
probot: createProbot (),
22
22
});
23
23
```
@@ -29,7 +29,7 @@ You need to add [environment variables to configure Probot](https://probot.githu
29
29
``` yml
30
30
provider :
31
31
name : aws
32
- runtime : nodejs12 .x
32
+ runtime : nodejs22 .x
33
33
lambdaHashingVersion : 20201221
34
34
environment :
35
35
APP_ID : ${param:APP_ID}
You can’t perform that action at this time.
0 commit comments