Add handling of non-multiline PRIVATE_KEY variable
This commit is contained in:
@@ -2,10 +2,13 @@ import {
|
||||
createLambdaFunction,
|
||||
createProbot
|
||||
} from '@probot/adapter-aws-lambda-serverless';
|
||||
import { appFn } from '../..';
|
||||
|
||||
import { appFn } from '../../app';
|
||||
|
||||
const privateKey = (process.env.PRIVATE_KEY as string).replace(/\\n/gm, '\n');
|
||||
|
||||
const handler = createLambdaFunction(appFn, {
|
||||
probot: createProbot()
|
||||
probot: createProbot({ overrides: { privateKey } })
|
||||
});
|
||||
|
||||
export { handler };
|
||||
|
||||
Reference in New Issue
Block a user