playlist-entry-validator/netlify/functions/validate-pr/index.mts

15 lines
336 B
TypeScript

import {
createProbot,
createLambdaFunction
} 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 };