mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-09-19 18:46:21 +02:00
15 lines
340 B
TypeScript
15 lines
340 B
TypeScript
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 };
|