Adapt the bot to run via Netlify Functions
This commit is contained in:
11
netlify/functions/index.ts
Normal file
11
netlify/functions/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {
|
||||
createLambdaFunction,
|
||||
createProbot
|
||||
} from '@probot/adapter-aws-lambda-serverless';
|
||||
import { appFn } from '../..';
|
||||
|
||||
const handler = createLambdaFunction(appFn, {
|
||||
probot: createProbot()
|
||||
});
|
||||
|
||||
export { handler };
|
||||
Reference in New Issue
Block a user