mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-28 00:15:48 +01:00
Add handling of non-multiline PRIVATE_KEY variable
This commit is contained in:
parent
e33aadee11
commit
80368e0647
@ -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 };
|
||||
|
@ -3,7 +3,6 @@
|
||||
"target": "esnext",
|
||||
"module": "commonjs",
|
||||
"rootDir": "./",
|
||||
"outDir": "./netlify/functions",
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
Loading…
Reference in New Issue
Block a user