Replace AWS Lambda adapter with custom function
This commit is contained in:
@@ -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 };
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"name": "dummy-package-json",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user