Try changing entrypoint's extension to mts

This commit is contained in:
2024-01-15 07:27:37 +01:00
parent bbd2085f19
commit 4257382210

View File

@@ -0,0 +1,14 @@
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 };