Replace AWS Lambda adapter with custom function

This commit is contained in:
2023-07-06 13:08:59 +02:00
parent 22b75f6c3f
commit 123f2b78ee
6 changed files with 54 additions and 20 deletions

View File

@@ -1,14 +0,0 @@
import {
createLambdaFunction,
createProbot
} from '@probot/adapter-aws-lambda-serverless';
import { appFn } from '../../../appFn';
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
const handler = createLambdaFunction(appFn, {
probot: createProbot({ overrides: { privateKey } })
});
export { handler };

View File

@@ -1,4 +0,0 @@
{
"name": "dummy-package-json",
"version": "1.0.0"
}