playlist-entry-validator/netlify/functions/index.ts

15 lines
340 B
TypeScript
Raw Normal View History

import {
createLambdaFunction,
createProbot
} from '@probot/adapter-aws-lambda-serverless';
2023-07-06 12:02:29 +02:00
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 };